Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alltrim for numeric variables
Message
From
17/06/2001 12:22:11
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00520367
Message ID:
00520372
Views:
16
Moises,
Try:
ALLTRIM(PADR(my_variable,20))
The PADx( < expr > ) functions automatically convert < expr > to a character string and respect the number of decimals.
HTH

>I have a very large numeric field
>
> When I print it there's a space at left as below:
>
>
> Value: 75.00
>
>
> I've tried
>
> alltrim (str(my_variable))
>
> However .00 desapears
>
>
> I it appears:
>
>
>
> Value: 75
>
>
> Is there a better way to do that ?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform