Jump to content

Recommended Posts

Posted

Hi everyone.. not quite sure how to get a list box to save its strings into a single .log or .txt file (either would work for me), and then later call each individual string..

the list box has up to 30 items in it, the user will be able to deselect certain items, or select items... i just need a way to save each string into an external file so i can later call them back as variables and display them into a disabled list box.. if anyone could help that would be extremely appreciated. reply if my objective is confusing.

THANKS!

Posted (edited)

$functionWrite = FileReadLine("C:IanLogTestfunctionLog.log")
Switch $functionWrite
Case "0"
$FunctionWrite = ""
Case Else
$functionWrite = FileReadLine("C:IanLogTestfunctionLog.log", 4)
$functionWrite = _GUICtrlListBox_InsertString($functionsList, $functionWrite)
EndSwitch

... say if there are 20 lines in the .log.... my best bet would be to use a For...Next. within the Case Else... yes or no?

Edited by LetsAuto

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...