PDA

View Full Version : list box fun


Pharmakon
10-19-2004, 10:27 AM
Hi All,

I'm currently evaluating APMS 5.0 for use in creating distance education CD ROMs. I'm trying to create a listbox that opens a file/url using the list data field, but I haven't been able to figure this out. What action do I need to perform this function? i've tried using ListBox.getItemData, but it doesn't seem to work. I also tried using File.GetURL, but I haven't found a way to put the list box data in as the URL. Any help?! Thanks!


Phar

Adam
10-19-2004, 01:26 PM
Hello,

Place the following code into the "On Double-Click" or "On Select" event of your listbox:


-- Get the selected index
Index = ListBox.GetSelected("ListBox1");
-- Use that index to get the data
Data = ListBox.GetItemData("ListBox1", Index[1]);
-- Use the data in any way that you would like. I choose
-- a listbox object
Dialog.Message("Your ListBox Data is",Data);


Adam Kapilik

Pharmakon
10-19-2004, 02:56 PM
thanks!

I was starting to think it wasn't going to work. Then i realized i was using data and not Data as the URL. Guess i'm used to flash scripting!

phar