Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display & write multiple columns in a list box
Message
 
 
To
20/02/2002 19:14:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00622891
Message ID:
00622916
Views:
27
This message has been marked as the solution to the initial question of the thread.
>Hi everybody!
>
>I need to write 3 values to a 3 columns list box at run time, how can i achieve it. I have tried with AddItem method but it does not work. No RowSource.
>Any idea

You've to use AddListitem Method.
* Listbox Init
WITH this
   .AddListitem( 'Item1_col1' )
   .AddListItem( 'Item1_col2', .NewItemID, 2 )
   .AddListItem( 'Item1_col3', .NewItemID, 3 )
   .AddListitem( 'Item2_col1' )
   .AddListItem( 'Item2_col2', .NewItemID, 2 )
   .AddListItem( 'Item2_col3', .NewItemID, 3 )
   * and so on ...
ENDWITH
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform