Input as string, the use that to calculate or conver to long data type? (1 Viewer)

Niroth

Registered User.
Local time
Today, 11:42
Joined
Jul 12, 2007
Messages
81
Hi,

I want to create touch screen buttons, which the user can use to input numbers, but I'm stuck at the "." for decimals, because I can't enter that as long data type directly So I thinking I can either change the string to long data type or use the text entered to calculate behind the scene with VB. Help?

Thanks.
 

Trevor G

Registered User.
Local time
Today, 19:42
Joined
Oct 1, 2009
Messages
2,341
Hi,

I want to create touch screen buttons, which the user can use to input numbers, but I'm stuck at the "." for decimals, because I can't enter that as long data type directly So I thinking I can either change the string to long data type or use the text entered to calculate behind the scene with VB. Help?

Thanks.

Long Integer still means whole numbers, you may have to use double

dim i as double
rather than dim i as long integer

Trevor
 

Users who are viewing this thread

Top Bottom