Results 1 to 3 of 3

Thread: Help with string calculations

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    3

    Help with string calculations

    I want to have text box were if the text entered is less than 8 characted then in another text box a two digits.

    As when the text box is filled if a word of 8 characters the other text box only has a single numerical digit in it

  2. #2
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: Help with string calculations

    VB Code:
    1. If Len(Text1.Text) = 8 Then
    2.     Text2.Text = "1" 'your single digit number
    3. ElseIf Len(Text1.Text) < 8 Then
    4.     Text2.Text = "11" 'your two digit number
    5. End If
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  3. #3
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: Help with string calculations

    BTW: Welcome to VB Forums
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


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