Results 1 to 3 of 3

Thread: If statement [RESOLVED]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    78

    If statement [RESOLVED]

    in an IF statment in VB6

    what expression can i use to test whether a string contains text ?

    with an integer i know its

    VB Code:
    1. IF integername = NIL then
    2. do something
    Last edited by joey_jones; Jan 17th, 2003 at 07:52 AM.

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    VB Code:
    1. If strTextName <> vbNullString Then
    2.   MsgBox "Not Empty."
    3. End If

    vbNullString is the VB constant for double quotes i.e. ""

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    78
    thanks

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