Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculated field in view displays asterisk for -ve numbe
Message
 
 
To
01/06/2007 10:22:22
Sammy Derban
Ghana Telecom
Accra, Ghana
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01229795
Message ID:
01229799
Views:
12
>Hello All,
>
>i get asterisk displayed for negative numbers resulting from a calculated field in a view.
>
>This only happens when i browse the view object. (i.e clicking on browse)
>This does not happen when the Run the query from the menu or from the command window.
>
>This is affecting oother views which depend on it.
>
>Sample code:
>SUM(AdjQty.Adj_Qty) AS ADJ_Qty
>
>Any help please?

Can you show the exact code instead? I would guess, that the precision for the field is smaller than needed, e.g the field is, say, 4 digits, instead of 5 or 6.

You may also use a different field name for your sum and force number of digits with this trick (since CAST function doesn't exist in VFP6):

select sum(myField + 0000000.00) as MyNewField...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform