VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Converts Currency into words for Ex: converts 100.30 to Hundred dollars and thirty cents only

by Dasari. Ravi Kumar (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Mon 28th February 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Converts Currency into words for Ex: converts 100.30 to Hundred dollars and thirty cents only

Rate Converts Currency into words for Ex: converts 100.30 to Hundred dollars and thirty cents only




uppercase(left(towords(truncate({reportfield}),0)+' ' +'dollars'+' '+ 'only',1)) + right(towords(truncate({reportfield}),0)+' ' +'dollars' + ' ' + 'only',length(towords(truncate({reportfield}),0)+' ' + 'dollars' +' '+ 'only') -1)
 
else

towords(truncate({reportfield}),0) +' '+'dollars'+' '+ 'and'+' ' +towords(tonumber(right(TOTEXT({reportfield}),2)),0)+' '+'cents'+ ' ' + 'only' 



Download this snippet    Add to My Saved Code

Converts Currency into words for Ex: converts 100.30 to Hundred dollars and thirty cents only Comments

No comments have been posted about Converts Currency into words for Ex: converts 100.30 to Hundred dollars and thirty cents only. Why not be the first to post a comment about Converts Currency into words for Ex: converts 100.30 to Hundred dollars and thirty cents only.

Post your comment

Subject:
Message:
0/1000 characters