Results 1 to 2 of 2

Thread: Counting digits spaces

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2014
    Posts
    58

    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

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,857

    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
  •  



Click Here to Expand Forum to Full Width