Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best approach for listbox on values
Message
From
13/07/2001 15:54:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/07/2001 12:11:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00529536
Message ID:
00530477
Views:
45
You are right. I forgot the difference between "0" and "1" for this property.

>>>You can only have one column when using type 1-Value.
>>>I prefer using type 5-array myself.
>>
>>I think you can have more than 1 column. The following works:
>>
>>Put a ListBox on a form. Write the following in Init():
>>
>>
>>This.AddItem("Option 1")
>>This.ListItem(This.ListCount,2) = "A"
>>This.AddItem("Option 2")
>>This.ListItem(This.ListCount,2) = "B"
>>
>
>Sure, this way you can.
>But that's not what I said - you're not *really* using RowSourceType=1 (Value), since you haven't set the RowSource to a comma-delimited list at design time.
>In effect, you are using RowSourceType=0 (none) in this example.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform