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 11:54:01
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:
01229830
Views:
16
>First record is 0

That's your answer. The resulting field size is calculated based on the first record. That's why you need to use the trick from prev. message or CAST function in VFP9. Another trick is to use UNION with 1=0, e.g.

select 0000000000000000.00 as myResultField from myTable where 1=0 ;
union ;
select ....
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform