Results 1 to 3 of 3

Thread: How to read tabs in a string

  1. #1

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    First: Don't use Left and Right when you can use mid, to get midle sections of strings.
    I'm not sure what your'e doing but type mismatch was caused cuz your AND will return a boolean and don't match chr(9) witch is a string.

  2. #2

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Also, AND operator compares only numerical values. You're using AND with two strings

  3. #3
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Hello ArchiGold!

    I am not sure what you are trying to do.

    Anyway, if you are trying to insert a tab into a string, concatenate the string with "vbTab".

    If you are tring to detect a Tab in a string, use "Instr" with "vbTab"

    And if you are trying to replace it with something. Use "Replace" with "vbTab" and whatever you want to replace it with.

    Chemically Formulated As:
    Dr. Nitro

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