Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture Accountant style?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00401780
Message ID:
00402713
Views:
8
Let´s consider that cont_pic is a public variable that contains the picture for numeric values i.e: "999,999,999,999.99"

FUNCTION pc
param numero
local a,b,c,d
d="iif(numero<0,' ','')+strtran(transform(numero,'@( "+cont_pic+"'),' ','')"
a=&d
b=len(alltrim(cont_pic))
c=len(alltrim(a))
a=repl(" ",b-c)+a
return a
Previous
Reply
Map
View

Click here to load this message in the networking platform