Quick Search for:  in language:    
10090,Converts,Currency,Text,converted,hundre
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,014,970. lines
 Jobs: 119. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!MSChart Simple Example
By Sebastian Pereira on 7/2

(Screen Shot)

CString v1.5
By Ultimatum on 7/2


Tablature Pro
By Michael McMullen on 7/2


Click here to see a screenshot of this code!MSN Password Decryptor
By Muhammad Sufyan Ansari on 7/2

(Screen Shot)

Mp3 Paker
By Michael McMullen on 7/2


Suppress Run Time Script Errors
By Nuclear_1000G on 7/2


Click here to see a screenshot of this code!List Maker
By KBM-00 on 7/1

(Screen Shot)

Web Update Checker
By knormalnight on 7/1


A*Beginners API*
By Michael Nipper on 7/1


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Currency to text Conversion

Print
Email
 

Submitted on: 12/9/1999
By: Dasari. Ravi Kumar(r&d; teamworks)  
Level: Not Given
User Rating: By 15 Users
Compatibility:VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0

Users have accessed this code 6213 times.
 
 
     Converts the Currency to Text. For Ex: 100.90 is converted as one hundred dollars and ninety cents only.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

'**************************************
' Name: Currency to text Conversion
' Description:Converts the Currency to T
'     ext. For Ex: 100.90 is converted as one 
'     hundred dollars and ninety cents only.
' By: Dasari. Ravi Kumar(r&d; teamworks)
'
' Returns:String
'
' Assumes:Insert a formula field in crys
'     tal reports and Paste the Code and repla
'     ce the 
currencyfield In the code With any reportfield whose datatype is currency or
Integer.
'
'This code is copyrighted and has' limited warranties.Please see http://w
'     ww.Planet-Source-Code.com/vb/scripts/Sho
'     wCode.asp?txtCodeId=4804&lngWId;=1'for details.'**************************************

If right(totext({currencyfield}),2) = '00' Then
    uppercase(left(towords(truncate({currencyfield}),0)+' ' +'dollars'+' '+ 'only',1)) + right(towords(truncate({currencyfield}),0)+' ' +'dollars' + ' ' + 'only',length(towords(truncate({currencyfield}),0)+' ' + 'dollars' +' '+ 'only') -1)
else
    towords(truncate({currencyfield}),0) +' '+'dollars'+' '+ 'and'+' ' +towords(tonumber(right(TOTEXT({currencyfield}),2)),0)+' '+'cents'+ ' ' + 'only' 


Other 2 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
12/9/1999 1:17:00 AM:Rony
It Works Amazingly and I feel it 
is
100% original. Keep It up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 1:20:00 AM:Sam
It Works Nicely. I think it is a 
enhancement of Towords function of 
reports.Good work.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 1:29:00 AM:Anil
ur code works out to be fantastic...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 1:32:00 AM:shanker
this function is I think first of its 
kind extending towords function.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 2:20:00 AM:Simren
I find your code absolutely working. 
I
desperately needed a function in 
reports
to convert the currency to 
text.
   Thanx Man
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 2:22:00 AM:Eric

Not Bad.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 2:25:00 AM:Author
I am extremely greatful to the
 Planet 
Source code for giving me a chance to 
submit my own code.Some more
functions 
are yet to come.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/10/1999 9:05:00 AM:Mohit
Nice function.
This functionality is 
provided by a built in function in 
Crystal Reports- with something like 
curTotext operator.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/12/1999 11:39:12 PM:James
Pretty Useful in reports. i hope u will 
develop a function in vb also
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/12/1999 11:47:01 PM:Guna
Good formula. Iused in making 
Payrolls.
Thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/13/1999 12:11:50 AM:Gibbs
nice formula...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/13/1999 12:19:13 AM:siler
rk ur formula is not bad....
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/2/2000 3:08:54 PM:Gohar
Q. How can I print from date to
to 
date using Crystal report?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.