Results 1 to 3 of 3

Thread: This is so easy

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    27
    What command do you use to compare fields in vb and then join them together. You know a command similar to the strcmp and strcat in C.

    Thanks.

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    umm..me don know C, but i think you are talking about
    Field1 = Field2
    Field1 & Field2

    Hope that helps,
    D!m
    Dim

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Location
    Antwerp,Belgium
    Posts
    21
    To compare to strings, you can use the following function

    strcomp(str1,str2,vbTextCompare)

    it returns :
    If StrComp returns
    str1 is less than str2 -1
    str1 is equal to str2 0
    str1 is greater than str2 1
    str1 or str2 is Null Null

    Hope this helps

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