VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
picking out numbers in a dim number as double Posted by waoo on 17 Dec 2004 at 12:03 PM
i want to beable to choose just the first number in a number and store it in another dim location.

example

dim num as double
num = 4524

what i want to display would be just the 4 or just the 5 or just the 2 ect.

can anyone help?
Report
Re: picking out numbers in a dim number as double Posted by Siavash1989 on 18 Dec 2004 at 10:31 AM
use the mid function:
mid (string, start, length) use like this:
mid(1234,2,1)
this returns "2"
"Within these countries, the man who was loyal, I rewarded well, who was evil, him I punished well!"




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.