Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field Width
Message
 
 
To
29/11/2000 11:58:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00446838
Message ID:
00447164
Views:
14
Steven,

If the value is numeric force it to the correct width:

cfnos(dm_released,noofshts) + 000000 As noofshts

would make sure the result field is n(6)

>I am haveing trouble with a select statement. One of the fields is a calculated field -cfnos(dm_released,noofshts) As noofshts-. If the variable dm_released evaluates to a temporary change value the value returned is a 1, otherwise the value returned is noofshts. My problem is if the first returned value is 1 it sets the field width to one charactor and any two digit values appear as an asterisk. If the first value is two digits all is well. Thanks for the help.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform