>I am using VFP 3
>
>I am trying to populate a listbox by value. According to the manual you can populate the listbox with mutiple values on multiple rows. I want to populate the listbox with two field values:
>
>SSN1 on the first column and LAST on the second column
>
>this is my code:
>
>thisform.list1.rowsource = thisform.SSN1.value, thisform.LAST.value
>
>I get a syntax error when doing this
>
>so I put quotes around the values and then it just populates the list if the thisform.SSN1.value was just text.
>
>Any suggestions?
>
>Thanks,
>-Bob
Try to put this at Init event of the ListBox control:
This.List(1,1) = 'First Row, First Column'
This.List(1,2) = 'First Row, Second Column'
This.List(2,1) = 'Second Row, First Column'
This.LIst(2,2) = 'Second Row, Second Column'
etc.
The above requires rowsourcetype as none.
HTH
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."