All source code in Visual Basic Ask a Visual Basic Pro Discussion Forum Categories All jobs in Visual Basic
program,converts,numbers,number,system,anothe
   Code/Articles � |  Newest/Best � |  Community � |  Jobs � |  Other � |  Goto � | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 10,269,388. lines
 Jobs: 279. postings

 How to support the site

 
Sponsored by:
Quick Search for:  in language:    
You are in:
 
Login





Latest postings for Visual Basic.
Click here to see a screenshot of this code!SMSlogger
By Emilio Ficara on 3/8

(Screen Shot)

Phonebook
By Andron Smith on 3/7


Click here to see a screenshot of this code!Formats the time in Real-Time.
By programadorvb6 on 3/7

(Screen Shot)

sticky VB windows that stick to each other (like seen in Winamp)
By Louis Coder on 1/9


Click here to see a screenshot of this code!calculator
By wadii el jaziri on 3/6

(Screen Shot)

Click here to see a screenshot of this code!Randomly_Spell_ RANDOM
By Mark Acuna on 3/4

(Screen Shot)

Centroid in Polygon Finder for AutoCAD
By Mark Acuna on 3/4


Click here to put this ticker on your site!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

Convert Numbers v1.5(Binary, Octal, Decimal, Hex and other...) supports very long numbers

Print
Email
 
winzip icon
Submitted on: 11/16/2009 9:02:58 AM
By: Saed abumokh 
Level: Intermediate
User Rating: By 2 Users
Compatibility:VB 6.0

Users have accessed this code 3581 times.
 
 
     This program converts numbers in a number system to numbers in another number system like Hex to Decimal or binary to Hex etc., see the word document to know how to convert. There is a useful graphical function,this function flashes a window or an object using its back color v1.5 - over flow error has fixed, write numbers as long as you can! how it's fixed... see the word document atached with this submission

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

'**************************************
'Windows API/Global Declarations for :Co
'     nvert Numbers v1.5(Binary, Octal, Decima
'     l, Hex and other...) supports very long 
'     numbers
'**************************************


Private Declare Function GetTickCount _ 
    Lib "kernel32" Alias "GetTickCount" () As Long
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 5 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
10/22/2009 10:01:18 AMSaed abumokh

please rate this code and post a comment!
(If this comment was disrespectful, please report it.)

 
10/30/2009 7:46:16 PMWilliam W

i like the fact that you show how behind the scenes the hex oct and decimal conversions work but a base of one will never work in your code as it is an endless loop
num=num/1 do until num=0

(If this comment was disrespectful, please report it.)

 
11/4/2009 11:19:53 PMSaed abumokh

Sorry, because its a bug, i had to limit the bases between 2 and 36,because the base 1 isnt base, the reson is: Lets convert a number in base 1 to decimal, convert 000 to decimal, what to do: (0*10^0)+0*(10^1)+(0*10^2)=0+0+0=0.......lets convert decimal to base 1, convert 4 to base 0, what to do: 4/1=4, the rest is 0, again 4/1=4, again and again...the number is still 4, base of one doesnt work on any code.
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Games | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright� 1997-2010 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.