Using VBTab

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TOD3
    New Member
    • Nov 2008
    • 3

    #1

    Using VBTab

    Does anyone know how to use a number with VBTab?
    Its to display in a list box but name how many spaces to jump across? In comal it is Tab(30) that would move the cursor to position 30.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    try the followin
    Code:
    Dim TestString As String
    ' Returns a string with 10 spaces.
    TestString = Space(10)
    ' Inserts 10 spaces between two strings.
    TestString = "Hello" & Space(10) & "World"

    Comment

    • TOD3
      New Member
      • Nov 2008
      • 3

      #3
      TY for reply. Its not quite wot im lookin for. If I was to have several columns in a listbox i need to know exactly wer the 2nd column is starting. e.g
      Name Age
      Bob 18
      Fiona 23

      Both hav 10 spaces between them and the columns are uneven. I need to code the actual tab margin starting number to guarantee even columns.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        if you are fetching data from database then it can be easily achieved by using some of the string function in SQL.

        Comment

        • TOD3
          New Member
          • Nov 2008
          • 3

          #5
          No its just to display output from arrarys to be displayed under 3 headings in a lisbox. Mite use 3 listboxes if I cant get it

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            you can fetch one item from array and format them as desired using some string functions like LENGTH.

            Comment

            Working...