Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Numbers To Chars

Status
Not open for further replies.

bobbarker

Programmer
Dec 20, 2001
83
GB
Without writing a function, does anyone know of any Foxpro commands to convert a number to characters - e.g. convert 301 to "three hundred and one"
Yours in hope...

 
No, there is no function to do so.
The only solution is to "pick up" a routine that does the job.
There are several available for free.

Rob.
 
Thanks for the response Rob.
I only dabble in Fox 2.6 from time to time so do not not many resources.
Do you have any suggestions as to where I could start looking for such routines.
Thanks again.
 
Use the Keyword Search tool of this forum to find previous postings where code like that has been posted.

Good Luck,


JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
There may not be much to find in this forum, but a lot of code in Visual FoxPro works just fine in good old FoxPro for DOS/Windows, just make sure the code doen't use any of the newer commands or functions.

This FAQ over on one of the Visual FoxPro forums has code that may be helpful to you, just remove or comment out the parts you don't need such as "dollars" and "cents". I wrote a shorter program about 20 years ago but I haven't seen it for quite a while. If I find it, I'll post it.

faq184-2848
thread184-538947 (newlook's post looks a lot like my lost code)
thread184-276882
 
I think without using fuction is not possible.Im using only with function , if u need i will post

Giri
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top