Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert numbers into words
Message
From
26/01/2002 15:58:52
 
 
To
26/01/2002 15:49:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00611130
Message ID:
00611134
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform