Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert numbers into words
Message
De
26/01/2002 15:58:52
 
 
À
26/01/2002 15:49:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00611130
Message ID:
00611134
Vues:
19
See if is this that you want.
PROCEDURE NumTOWord
LPARAMETER nNumber
RETURN CHR(BITAND(255,nNumber)) ;
	+ CHR(BITAND(65280,nNumber)%255) ; 
	+ CHR(BITAND(16711680,nNumber)%255) ;
	+ CHR(BITAND(4278190080,nNumber)%255)

PROCEDURE WordTONum
LPARAMETER cBuffer
RETURN ASC(SUBSTR(cBuffer,1,1)) ;
	+ ASC(SUBSTR(cBuffer,2,1))*256 ;
	+ ASC(SUBSTR(cBuffer,3,1))*65536 ;
	+ ASC(SUBSTR(cBuffer,4,1))*16777216 
Edson Gabriel Meireles
egmsoftware@bol.com.br
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform