Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2008, 02:02 PM
Registered User
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mylifeishz
Default Converting numbers to text

Hi I am trying to write a checkwriter program. Everything is perfect except my conversion from the check amount in numbers to check amount in words. I have been working on this for over two weeks and bought VB 2005 programmers reference and so many more. None of which had anything about converting from numbers to words. I need something like 1 = "one" 2 = "two" and so on. I have tried using two functions and static variables. I am desperately in need of help.

Thanks, Danyiell

 
Old July 5th, 2008, 10:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I think the simple solution is a series of Select Case constructs to pick the word phrase(s) you need for the numbers. It is unlikely that you will find anything in the standard set of .NET tools that will do this. I would imagine there are libraries people have developed to do this already that might be available for you to use.

-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Wiki-like text into XML igraham XSLT 7 February 28th, 2008 06:18 PM
searching a text file for repeated numbers Un33k Visual Basic 2005 Basics 1 October 30th, 2007 01:50 PM
Converting military times to numbers Wire323 Excel VBA 1 April 6th, 2006 01:47 AM
converting numbers to words ali_md SQL Server 2000 4 March 3rd, 2006 02:10 AM
reading different numbers from multiline text ? sagarkoirala VB How-To 2 August 9th, 2003 12:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.