Hi, until now I never used listbox control with RowSourceType=5 (array). I made some form with a commandbutton and listbox based on this code inside button click() event:
but nothing appears! Background of Listbox appears like something invisible populated it but after click there is nothing! If I click fast few time then sometime appears items but when I click on Listbox they disapears!?
I saw also example on M$ MSDN page about SQL result into Thisform.myarray but also doesn't work for me! Is there some trick like some of them exist for grid object or just it's up to me? Thank you.
There is no good nor evil, just decisions and consequences.
Code:
dimension mycolors[4]
colors(1)="black"
colors(2)="white"
colors(3)="red"
colors(4)="green"
thisform.list1.RowSourceType= 5
thisform.list1.RowSource= "mycolors"
but nothing appears! Background of Listbox appears like something invisible populated it but after click there is nothing! If I click fast few time then sometime appears items but when I click on Listbox they disapears!?
I saw also example on M$ MSDN page about SQL result into Thisform.myarray but also doesn't work for me! Is there some trick like some of them exist for grid object or just it's up to me? Thank you.
There is no good nor evil, just decisions and consequences.