how do u recognize space on textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • obkfixx
    New Member
    • Mar 2008
    • 19

    how do u recognize space on textbox

    help! how do u recognize a space on the textbox?
  • mafaisal
    New Member
    • Sep 2007
    • 142

    #2
    Hello

    Use Instr Function

    Faisal

    Originally posted by obkfixx
    help! how do u recognize a space on the textbox?

    Comment

    • obkfixx
      New Member
      • Mar 2008
      • 19

      #3
      Originally posted by mafaisal
      Hello

      Use Instr Function

      Faisal
      Ooooooooh! thanks. but it didnt help..... i need to find out if the input of the textbox are all white spaces.. or spaces.... cud u write me a code for this?

      Comment

      • QVeen72
        Recognized Expert Top Contributor
        • Oct 2006
        • 1445

        #4
        Hi,

        Check This :

        [code=vb]
        If Text1.Text <> "" And Trim(Text1.Text ) = "" Then
        MsgBox "All Blank Spaces"
        End If

        OR

        If InStr(Text1.Tex t ," ") > 0 And Trim(Text1.Text ) = "" Then
        MsgBox "All Blank Spaces"
        End If

        [/code]

        REgards
        Veena

        Comment

        • obkfixx
          New Member
          • Mar 2008
          • 19

          #5
          Originally posted by QVeen72
          Hi,

          Check This :

          [code=vb]
          If Text1.Text <> "" And Trim(Text1.Text ) = "" Then
          MsgBox "All Blank Spaces"
          End If

          OR

          If InStr(Text1.Tex t ," ") > 0 And Trim(Text1.Text ) = "" Then
          MsgBox "All Blank Spaces"
          End If

          [/code]

          REgards
          Veena

          Thanks iT helped a lot......

          regArds! OBKFixx

          Comment

          Working...