Results 1 to 6 of 6

Thread: [RESOLVED] Please Help... I really Need some help

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    389

    Resolved [RESOLVED] Please Help... I really Need some help

    ok I am working on some parsing code and I Need to do this... (I now how to pasrse so this question is not about parsing...)

    Anyway... here is what I Need

    If label1.Caption = any other charater besiedes numbers then
    label1.Caption = "Full
    End If

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Please Help... I really Need some help

    VB Code:
    1. If Not IsNumeric(Label.Caption) Then
    2.     Label1.Caption = "Full"
    3. End If

  3. #3
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Please Help... I really Need some help

    Quote Originally Posted by vbman213
    ok I am working on some parsing code and I Need to do this... (I now how to pasrse so this question is not about parsing...)

    Anyway... here is what I Need

    If label1.Caption = any other charater besiedes numbers then
    label1.Caption = "Full
    End If
    first off, where are you getting the value for the label? from a textbox? other control? but you could do this to check the label to see if its numbers or not.

    I havent tried this but it should work.
    VB Code:
    1. If Not IsNumeric(label1.Caption) Then
    2.    label1.Caption = "Full"
    3. Else
    4.    label1.Caption = "Not Full"
    5. End If

  4. #4
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Please Help... I really Need some help

    Quote Originally Posted by Hack
    VB Code:
    1. If Not IsNumeric(Label.Caption) Then
    2.     Label1.Caption = "Full"
    3. End If
    two minutes late! haha

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    389

    Re: Please Help... I really Need some help

    thanks...

  6. #6
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Please Help... I really Need some help

    Quote Originally Posted by vbman213
    thanks...
    if this has answered your question, please resolve 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