Results 1 to 4 of 4

Thread: Converting Numbers to Words?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    1

    Question

    I need to know how to (cleanly) convert dates (i.e. 03/23/89) into a word-filled phrase (i.e. "March Twenty Three Eighty Nine")

    While I have some idea how to go about this, I keep running into problems with messy code. My question is, What is the best way to go about writing this code?

    Should I use select case?
    Certain loops?

    Thanks for your help ahead of time!

  2. #2
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Lightbulb select case..

    I would use select case but im sure someone has a better idea!
    Matt

  3. #3
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305
    yup ... i would use select case for this because it probably be much neater to read then a bunch of if...then codes

    you should store the numbers in a string then read the numbers with the mid statement

    then depending on what that number is you would give it a word value

  4. #4
    Guest
    http://www.vb-world.net/tips/tip108.html

    ^may help you get started.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width