VB output

Soldato
Joined
25 Jul 2006
Posts
3,529
Location
Taunton
i basically need to save lots of options, if you like into one file on output then input them back to where they should be on the loading process.

i know how to do it to single options to single files but not multiple options to a single file.

any help? :)
 
nah i mean VB 6, this is for the input - i know there is something that i can do using split but i can only remember half of it and i cant access my college files to get the rest of it :(

Code:
 Dim thing as _______(string?)

open app.path & "\prog.dll" for input as #1

opt = Split(_____(#1?), vbtab,,)

thing.option1 = opt(0)
thing.option2 = opt(1)
thing.option3 = opt(2)

close #1

Im not sure is the 3 option bits at the bottom are correct and can you fill in the spaces, im guessing the top one as string and then 2nd one as #1 but not 100% sure
 
Last edited:
nevermind found it and its a lot more simple then i thought
Code:
Opt = Split(Text3, vbCrLf, , vbTextCompare)

Text1 = Opt(0)
Text2 = Opt(1)

just means that i have to input the whole lot into a invisible text box, then seperate it from there instead of straight away on the form load event
 
Back
Top Bottom