Results 1 to 6 of 6

Thread: Urgent!!! Create a variable that re-creates itself

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    85

    Question

    This is what I want to happen with this code:

    'this will be called in the middle
    'of passing the files from source to selected

    Sub StoreInfo (lstSourceFiles.Text as string)

    Dim SavedFile as String

    'there needs to be as many SavedFiles as there
    'is selected files which we do not know until
    'the file is chosen and passed
    'so that savedfile will store all of the information

    'the following code is what I want to happen
    SavedFile1 = lstSourceFiles.Text
    SavedFile2 = lstSourceFiles.Text

    'SavedFile will keep adding one for every file passed
    End Sub

    This what I want to do even possible??

  2. #2
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    Why not use Arrays or even (the boggie word) -- Collections for this?

    Unless, I am missing your point altogether, arrays is the answer. And hey; anything is possible in VB.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    85
    Will I be able to get each piece of info out of an array though?? lstSourceFiles.Text contains filename, pgsize and pgname. I need to have access to each one of these pieces of info.

  4. #4
    Guest
    And hey; anything is possible in VB
    Try making an OS.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    85
    An OS what is that I'm not sure what you mean. The only OS I know is operating system.

  6. #6
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    Dear Aburke:

    Tell us exactly what it is that you need. We can do it.

    I am SO cool and I see MegaTron is even cooler. Tell us what you need?

    Do you have any problematic code for instance? We'll dehack that in no time.

    (MegaTron: You gotta stick by me on this one), haha.

    Code:
    Const False = 0
    Const True = Not False
    Anything is possible.

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