pshankland Posted January 29, 2008 Share Posted January 29, 2008 (edited) Hi, I am using an INI file to store information into which I then need to pass into an array within AutoIT. The reason for this is because I want the 'end user' to be able to modify the INI file and add extra paths as necessary but then want the array to grow or shrink without me having to edit the size of the array within the code. Can anyone let me know if this can be done and if so, how? Thanks. Edited January 29, 2008 by pshankland Link to comment Share on other sites More sharing options...
Björn Kaiser Posted January 29, 2008 Share Posted January 29, 2008 some functions you might be interested in: IniReadSection ReDim UBound now, go Read The Fine Manual and make the best out of it. "I teleported home one nightWith Ron and Sid and Meg.Ron stole Meggie's heart awayAnd I got Sidney's leg."- A poem about matter transference beams. Link to comment Share on other sites More sharing options...
pshankland Posted January 29, 2008 Author Share Posted January 29, 2008 Thanks for the information. I have used IniReadSection and managed to create my array from the info within the INI file. now I have come across a different issue:I have the following code:$ModelArray = IniReadSection("CognosInfo.ini", "ProductionModels") For $i = 1 To $ModelArray[0][0] ;MsgBox(4096, "INI Info", Chr(34) & $Transformer & Chr(34) & " " & $TransformerArgs & " " & $ModelArray[$i][1]) $RunDOSError = _RunDOS(Chr(34) & $Transformer & Chr(34) & " " & $TransformerArgs & " " & Chr(34) & $ModelArray[$i][1]) MsgBox(0,"Output", $RunDOSError) NextWhen I uncomment the MsgBox I get exactly the correct info that I want to pass to the _RunDOS command. Unfortunatly, I get an error code of 1 and it all fails. Is there some limitation of the _RunDOS command or is it something more obvious that I am doing wrong?Thanks. 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