Consulting

Results 1 to 5 of 5

Thread: declare varibale at run time

  1. #1
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location

    declare varibale at run time

    can we declare variable at run time in vb.6

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You can't, it is part of the program design. But why would you need to?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location
    i am using csv file as database,i have to capture content of csv file and assign it to array ex:
    1,test,A,B,C,D
    .
    .
    .
    .
    this is content in csv file..i wan to assign 1 to one array ,test to one array,A to another array,so on
    .one line in csv file may contain n no of items as it not fixed ex:
    1,test,A,B,C,D,E,F,AA,BB,CC...
    every time when i run i neeed to specify array for each item...
    so looking for best possible solution

  4. #4
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    Why are you assigning single values to separate arrays?

    Have you looked at ReDim?

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If you assign one item per array, that isn't an array. An array does what you want implicitly.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •