VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Convets Hex to Decimal and Decimal to Hex!

by Deano Splamoni (15 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 26th October 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Convets Hex to Decimal and Decimal to Hex!

API Declarations


Dim X_After as integer


Rate Convets Hex to Decimal and Decimal to Hex!



X_Before = 265
X_After = Hex(X_Before)

-------
'De-Converts to decimal.
'Lets your hex = FFFFFFFF or in the regesty (FF,FF,FF,FF) . 
'Well that as a decimal = 256*256*256*256
'But you dont do that, you put &H before it.. e.g.
intDecimalHex = &HFFFFFFFF

'very easy :D
'
'More code, ocx's and jobs for all programming stages @ www.antbyte-software.co.uk
'If you arent proffessional but would like a hobby being in the Antbyte Software Freeware Team then email [email protected]!
':P enjoy
'If you are proffessional and would like a job in the Antbyte Software Corporate Team then email [email protected]!

Download this snippet    Add to My Saved Code

Convets Hex to Decimal and Decimal to Hex! Comments

No comments have been posted about Convets Hex to Decimal and Decimal to Hex!. Why not be the first to post a comment about Convets Hex to Decimal and Decimal to Hex!.

Post your comment

Subject:
Message:
0/1000 characters