xZZTx Posted June 5, 2008 Share Posted June 5, 2008 Hi is there a way to write an array value to an ini and when you iniread it, it's still an array value i really need it to save variable's Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times.. Link to comment Share on other sites More sharing options...
sandin Posted June 5, 2008 Share Posted June 5, 2008 #Include <Array.au3> MsgBox(0, "Info", "select INI file to write your array variables." & @CRLF & "You can create a new one or open an existing one") $INIFile = FileOpenDialog("select INI file", "", "INI files (*.ini)", 2+8) $VarNo = InputBox("No. of variables", "Input how many variables you would like your INI file to remember", "5") for $i = 1 to $VarNo $NewValue=InputBox("New Variable", "Input value for var No. " & $i) if @error = 1 then Exit IniWrite($INIFile, "Array variables", $i, $NewValue) Next MsgBox(0, "Info", "Your INI file with variables has been saved." & @CRLF & @CRLF & " Now you'll need to select INI file to open those" & @CRLF & "variables and arrange them into array") $SavedFile = FileOpenDialog("select INI file", "", "INI files (*.ini)|Text files (*.txt)|All files (*.*)") $result = IniReadSection($SavedFile, "Array variables") dim $AvArray[1] for $j = 1 to $result[0][0] _ArrayAdd($AvArray, $result[$j][1]) Next _ArrayDisplay($AvArray, "Loaded values from your INI files are:") Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now