-
Jan 27th, 2019, 01:31 AM
#1
Thread Starter
Member
Counting digits spaces
I need help coding the right method to save space in my project vb6 . I must find the right answer to this sample using three textboxes and one click command. How many counts it takes to from text1 to text 2, the answer in text3. Thanks in advance for helping coding.
Click command 1
If text1.text = 3 and text2.text = 12 then
Text3 = 9
End if
End sub
-
Jan 27th, 2019, 03:16 AM
#2
Re: Counting digits spaces
First convert the text in the textboxes to numeric values, then substract the numbers.
Have a look in the help for Cdbl() and CLng(). The first is for dealing with floating point numbers, the last for dealing with whole numbers.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|