Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox Value
Message
From
08/10/2003 13:19:26
 
 
To
08/10/2003 13:13:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00836294
Message ID:
00836335
Views:
7
>>Hello all...
>>I am creating a form (in VFP 6) that our developers will use to initiate variables for a program that we run on a daily basis. Most of the values don't change, but a few of them do. I am using comboboxes and would like to set the properties on the object rather than hardcode it. I have a list of items (C,N,L,D) for the user to select and have the DisplayValue property set to 'L'. This will display the value on the form, but the application doesn't register anything as an actual Value unless I tab through all of the fields. If I set the Value property to 'L' nothing shows in my combobox. What can I do that doesn't require hardcoding...I have about 40 fields that I am working with.
>>
>
>If the value you want is based on some other piece of data, use that to initialize the combo:
>
>This.Value = m.SomeVariable
>
>or
>
>This.Value = SomeAlias.SomeField
>
>Tamar


I want to use the display value (which is one of the selections in the row source - List) if the user doesn't change the default OR the value they enter into the combobox. If the user doesn't change the default the value property for that combobox is "".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform