View Single Post
  #3   Spotlight this post!  
Unread 27-12-2005, 16:31
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: reading negative numbers from a file in VB

Although we can try to help.

I don't know VB worth crap, so there could be an easier way, but I'd say that you could check if it begins with a '-,' strip it off if it does, convert the main part to a number, then multiply by -1.

IE, if you have "-5" in a file, you take off hte negative ("5"), convert it to a number (5), then multiply by -1 (-5).
__________________