When I MAKE the code QB4.5 does that automatically in the IDE. How do you write your programs? You have to create them before they are compiled! What is a # in an interpreted QB? Hope it's not an insult LOL.
As for figuring if you need Single or Double, use a string input and check the length of the string. Also make sure they are all number characters using MID$ and ASC(stringnumber). You could use an INKEY$ entry and not allow non-numerical key entries.
Then convert with VAL and use the proper functions for the number of digits in your program's entry. If they exceed the limit, make the user start over.
If it is not a big deal, then get a number entry and an error perhaps.
This message has been edited by burger2227 on Oct 19, 2007 9:54 PM