We help IT Professionals succeed at work.

HOW DO I CHANGE "OPTION STRICT ON"  IN ""OPTION STRICT OFF" TO ALLOW IMPLICIT CONVERSIONS OF VARIABLES  FROM 'DOUBLE TO STRING'

428 Views
Last Modified: 2013-11-07
Dear Sir.
My problem is:
I have created using Visual Basic.net (v2003) a program named "MyFramework Math" an when I try to run it appears the following message " Option Strict On disallows implicit conversions from 'Double' to 'String" and then the MyFramework Math.exe is not created.
Please, tell me what must I do to allow implisit conversion.
SYMOTOM
Monday 11-August 2008  20:11 hs. (gmt - 3)
Comment
Watch Question

Jorge PaulinoIT Pro/Developer
CERTIFIED EXPERT
Top Expert 2008

Commented:
Hi SYMOTOM,


Do this in the beggining of your code:

Option Strict Off
Jorge PaulinoIT Pro/Developer
CERTIFIED EXPERT
Top Expert 2008

Commented:
To use that on all your projects you can go to Tools -> Options -> Projects and Solution and then change it on VB Defaults
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
jpaulino:
You told me: "you can go to Tools -> Options -> Projects and Solution and then change it on VB Defaults"
and I could not find "VB Defaults"
Please, if possible tell me how must I continue
SYMOTOM
Martes 12-Agosto 2008  11:50 hs. (gmt - 3)

Projects-and-Solutions-1.jpg
Jorge PaulinoIT Pro/Developer
CERTIFIED EXPERT
Top Expert 2008

Commented:
Humm, I'm using VS2005 but I'm sure you also have anywhere. But this will only affect the future projects, not that one.
You can use Find and Replace (select Current Project to replace in all) and replace "Option Strict On" with "Option Strict Off "

Author

Commented:
jpaulino:
When I Do this in the beggining of my code: Option Strict Off
it appears Option underline
then the program do not run well
You can see those in the attached file

0ption-is-underline.jpg
Jorge PaulinoIT Pro/Developer
CERTIFIED EXPERT
Top Expert 2008

Commented:
You must add it before the imports (on the top)

Author

Commented:
jpaulino:
I got the attached file
Projects-and-Solutions-1.jpg

Author

Commented:
Dear jpaulino:
I am waiting your answer
Regards
Martes 12-Agosto 2008  19:46 hs. (gmt - 3)
IT Pro/Developer
CERTIFIED EXPERT
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
jpaulino and BigPhule:
Thanks very much
SYMOTOM
MiĆ©rcoles 13-Agosto 2008  16:01 hs. (gmt - 3)
Jorge PaulinoIT Pro/Developer
CERTIFIED EXPERT
Top Expert 2008

Commented:
Glad I could help and thanks for the grade.
jpaulino

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.