Results 1 to 3 of 3

Thread: vbtab

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2010


    does anyone know how many spaces a vbtab can take up? is there a way to find out?

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    New Amsterdam

    Re: vbtab

    I'm not aware of any function that returns that...
    If it's that important vbTab can easily be substituted with fixed number of spaces using Space(number_of_spaces) function when you build string yourself.
    If string comes from elsewhere you may use Replace(oldstring, vbTab, Space(number_of_spaces)) function to replace all vbTab characters with fixed number of spaces.

    btw, there is no need to post twice the same question.

  3. #3
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Beside Waldo

    Re: vbtab

    To piggyback on RhinoBull's comments. Tabs are not necessarily the same from control to control or on the printer. A tab in a listbox may not be the same tab in a textbox and may not be same as a tab in a picturebox, etc, etc. Tabs are almost always related to font type/size; though some may be hard-set pixel offsets.

    In addition, many controls allow users to explicitly set tabs to custom offsets so a tab in the same types of controls may not match. I wouldn't make the blanket assumption that a tab is always a fixed amount of "spaces" every time a tab character is encountered; tabs can be fixed or dynamically spaced
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online

    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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