Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Am I losing my mind? Combobox with numeric field overflo
Message
From
19/10/2001 13:26:16
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00570884
Message ID:
00571004
Views:
35
This message has been marked as a message which has helped to the initial question of the thread.
>Hi ya Steve,
>
>Yes, the numbers are used in calculations, but I thought about changing to CHAR from NUMERIC too. Maybe I could and then use VAL() when the time comes to use them in calculations. I was just hoping to avoid changing tons of code because this is more of a bug fix than anything else and I know the calculations portion is a huge amount of code.
>

Steve,

A quick fix would be to leave at numeric in the table, but use character values in the list box.
* reading record
SCATTER MEMVAR MEMO
m.myfield1 = str(m.myfield1,0,0)
* saving record
m.myfield1 = val(m.myfield1)
GATHER MEMVAR MEMO
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform