Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STR() not work
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00947504
Message ID:
00947766
Views:
14
>Hello,
>
>I try to replace a numeric field with str() but not work,
>
>account_am = 1948.00 to have accountchr = 1948 without .00 after and does not
>any space after too.
>
>means only 1948 in accountchr nothing more.
>
>with
>
>REPLACE accountchr WITH STR(account_am,16,0)
>
>Any help would be appreciated
>
>TIA

It depends on the data type "accountchr" is. If it's a numeric (4, 0), then simply
REPLACE accountchr WITH INT(account_am)
should work.

If it's c(4) then
REPLACE accountchr WITH TRANSFORM(account_am)
should
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform