Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Como hacer que la condición (Format) sea dinámica
Message
 
 
À
09/10/2003 22:30:21
Firmo Lopez
Santa Rita Investmets Inc
Boca Raton, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00837223
Message ID:
00837271
Vues:
38
Me imagino que es una version de prueba... pero me surgiò una duda, para que es la siguiente linea?
m.nDigits = 16 - 4
Digo, podria haber sido asignada directamente a 12, no?
LPARAMETERS nCurrency

LOCAL cMask, nDigits, nDecimals

m.nDigits = 16 - 4
m.nDecimals = SET('DECIMALS')
m.cMask = RIGHT('$$$,$$$,$$$,$$$,$$$,$$$', m.nDigits) + ;
          IIF(m.nDecimals > 0, '.' + REPLICATE('9', m.nDecimals), '')

RETURN TRANSFORM(ROUND(m.nCurrency,m.nDecimals), m.cMask)
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform