Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combolist .value sometimes numeric type, sometimes character
Message
From
29/03/2001 21:51:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Combolist .value sometimes numeric type, sometimes character
Miscellaneous
Thread ID:
00490166
Message ID:
00490166
Views:
62
This one is really strange.

I have a form that fires up a modal form. The latter has a combolist (named custlist) whose rowsource is a SQL statement:
select sortname,mcode from customer order by sortname into cursor custcur
sortname is an abbreviated version of the customer's name and mcode is a numeric customer ID. BoundTo=T and BoundColumn=2.

This results in a control that displays the customer's abbreviated name but sends the numeric ID to custlist.value

Pretty straigtforward stuff.

Here's the weird thing.

If I run the top level form directly, from the development window, custlist.value takes on numeric values, as intended.

But if I fire up my full app from the development window (do main.prg) and then get to the same modal form with a sequence of menu and control choices, custlist.value takes on character values. (Same digits...but it's the character string version, not numeric).

This seems like a bug, but I sure am hoping it's just some stupid thing I'm doing that someone out there might recognize.
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Next
Reply
Map
View

Click here to load this message in the networking platform