Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show Array Col 1 + 14 in listbox
Message
 
To
07/01/2005 16:22:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00975258
Message ID:
00975265
Views:
12
This message has been marked as the solution to the initial question of the thread.
>>>Hello Everybody.
>>>
>>>Must be friday - or i am missing something.
>>>
>>>how can i show in a vfp listbox array column 1 and column 14.
>>>
>>>because the listbox is greatly referenced in my app i can not change it from an array to a table or rearange the array columns.
>>>
>>>thanks for all your help.
>>
>>Something like that?
>>
>>FOR asd = 1 TO ALEN(MyArray,1)
>>    thisform.ListBox1.AddItem(" ")
>>    thisform.ListBox1.AddListItem(MyArray[asd,1] ,1)
>>    thisform.ListBox1.AddListItem(MyArray[asd,14],2)
>>ENDFOR
>>
>
>hello Borislav
>
>thanks for your reply
>
>hmmm, that would add 2 rows - correct?! i need them in 1 row, which would be easy with your solution, but i am not sure if that would have any impact on my app since there is no direct link to the array anymore (.RowSourceType = 5 [array]).

>
>if possible i'd rather prefere a solution with the array as the rowsource.

No this would add as many rows as array have with two columns.

Other way is to put
.RowSourceType = 5 && Array
.RowSource = "MyArray"
Set .ColunCount = 14
Set .ColumnWidths = 50,0,0,0,0,0,0,0,0,0,0,0,0,50 && 50 is some free value # 0
But this I am never tried.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform