Connecting Tech Pros Worldwide Forums | Help | Site Map

vb 6.0

Familiar Sight
 
Join Date: Nov 2006
Posts: 129
#1: Jan 15 '07
Plz help me guys!!

I want to convert a numeric value to string

eg:- 123
ans:- one hundered and twenty three

Thanx in advance

Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#2: Jan 16 '07

re: vb 6.0


Quote:

Originally Posted by dwadish

Plz help me guys!!
I want to convert a numeric value to string
eg:- 123
ans:- one hundered and twenty three

There are lots of different ways you could do it. If the number of possibilities is fairly low, you could just create an array and fill them in manually. Otherwise, you'll want to do something like using division to pick out the number of thousands, hundreds and so on, and fill in text based on them.

Your best bet would be to try to think your way through how to do the process, without worrying too much about the specific syntax of the language (VB in this case). You'll probably teach yourself a lot of useful programming skills along the way.
Reply


Similar Visual Basic 4 / 5 / 6 bytes