Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picture Accountant style?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00401780
Message ID:
00402713
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform