I have listbox and pictures folder.
If i select some item on listbox it loads picture related to the given item.
I have the following code to do that:
The showpics.ini file contains a lot of lines may be 100-500...
I would like to make short code to do the same action as shown abowe
Can I ask experts for help to make a short code please?
If i select some item on listbox it loads picture related to the given item.
I have the following code to do that:
Code:
if ListBox.IsItemSelected("ListBox1", 1) then Image.Load("Image1", _SourceFolder .."\\"..INIFile.GetValue("PICS\\showpics.ini", "png", "1")); end if ListBox.IsItemSelected("ListBox1", 2) then Image.Load("Image1", _SourceFolder .."\\"..INIFile.GetValue("PICS\\showpics.ini", "png", "2")); end if ListBox.IsItemSelected("ListBox1", 3) then Image.Load("Image1", _SourceFolder .."\\"..INIFile.GetValue("PICS\\showpics.ini", "png", "3")); end and so on
I would like to make short code to do the same action as shown abowe
Can I ask experts for help to make a short code please?
Comment