Sign in to follow this  
Followers 0
JonD

2 dimension array to read and populate another from gui list

2 posts in this topic

I am trying to create a support tool, one of the options will be to choose from several tools from a check list.

I am able to populate the list of tools using the function below, the ini contains lines like appname=http://www.site.com/filename.exe

Global $LISTOFTOOLS

Func GETTOOLIST()
_GUICtrlListView_DeleteAllItems($DOWNLOADLIST1)
$LISTOFTOOLS = IniReadSection("C:Temptools.ini", "Tools")

For $I = 1 To $LISTOFTOOLS[0][0]
    GUICtrlCreateListViewItem($LISTOFTOOLS[$I][0], $DOWNLOADLIST1)
Next
EndFunc

Now my problem has two parts:-
1) When in the GUI 'While' section I have a 'Case $DOWNLOADBUTTON1', in this section the variable $LISTOFTOOLS is listed as a 'possible used before declaration' error (using f5 to run, not tested it yet when compiled or could be rather than putting some code under the Case command I will just call a function instead, will test tomorrow)

2) I'm not sure how to create a new array containing the hyper links for the selected tools so I can then pass this array to the download section.

Any pointers would be appreciated.
 

Share this post


Link to post
Share on other sites



Hi,

Welcome to the autoit forum :)

Can you provide the whole script so we can investigate on your errors?

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0