Numbers to text problem

This is a discussion on Numbers to text problem within the C# Programming forums, part of the General Programming Boards category; Found my error for the moment....

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    42

    Numbers to text problem

    Found my error for the moment.
    Last edited by d2rover; 01-30-2011 at 10:37 AM. Reason: Not thinking this morning

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Well, the error message is clear enough, I think: not all paths (through the function) return a value. For instance, if you call numbervalue with something other than zero, you will never return a value (the only return statement is in the ==0 case). So you need to make sure that you are returning the string you are building.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Do not edit your post and remove the original question. Now we have a thread that no one can understand.

    Closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Read max value from strings of numbers in text file
    By james890 in forum C++ Programming
    Replies: 14
    Last Post: 04-15-2010, 04:26 PM
  2. deleting numbers in text files
    By ioanLesbi in forum C Programming
    Replies: 2
    Last Post: 04-06-2010, 12:24 AM
  3. Help with Numbers - Newbie Problem
    By Sn1per in forum C Programming
    Replies: 9
    Last Post: 10-30-2009, 02:50 PM
  4. Text files problem
    By strickey in forum C++ Programming
    Replies: 4
    Last Post: 11-29-2007, 06:39 AM
  5. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 03:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21