Results 1 to 6 of 6

Thread: Syntax - If TxtBox.Text <> ".Something" [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Resolved Syntax - If TxtBox.Text <> ".Something" [RESOLVED]

    All I'm wanting to do is check to see if the period has already been appended to the beginning of the customername text. If it has, then I want it to skip adding it again. I'm not sure what to put in the quotes after <> to show ".something". I thought it was %, but I guess not, because it's still adding it if the checkbox is checked.

    VB Code:
    1. If chkCustShipTo.Checked = True Then
    2.             If txtCustomerName.Text <> ".%" Then
    3.                 ds.Tables("customer").Rows(inc).Item(0) = "." & txtCustomerName.Text
    4.             End If
    5.         Else
    6.         End If
    I also tried, without any luck:
    VB Code:
    1. If txtCustomerName.Text <> "." & "%" Then

    Thanks.
    Last edited by milkmood; Jun 3rd, 2005 at 09:35 AM.
    When I say 'jump', don't waste time asking 'how high?'.

    Just a poor, dumb wanna-be programmer.

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