Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle numerics in a combobox?
Message
From
08/11/2002 15:49:05
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
To
08/11/2002 13:26:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00720148
Message ID:
00720495
Views:
9
>Henry,
>You don't say how you query values. I said do query like this :
>mSometime = AllTimeSlots.app_time

In one Combo's InteractiveChange I have:
mStartTime = this.displayvalue && have tried =AllTimeSlots.App_Time also
In the other I have:
mEndTime = this.displayvalue && have tried =AllTimeSlots.App_Time also
Then, the click evnet of a command button contains the select statement which uses the variables noted above to get timeslots thaqt are between those two number - the result is also wrong.

>
>Probably instead you're doing :
>mSomeTime = val(thisform.mycombo.Value)
>
No.

>Val() adds the decimal places (based on set decimal)
>If combo is not Bound (bound=.f. default) and column has numeric values then what you get back is Listindex not the value in that column. Set bound=.t.

I will try this.


Thanks Cetin.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Previous
Reply
Map
View

Click here to load this message in the networking platform