|
-
Nov 22nd, 2002, 05:14 PM
#1
Thread Starter
Addicted Member
Convert from hex and oct
I know converting to hex is Hex() whats converting from hex and oct?
First person to be able to get what song is currently playing in Winamp 3.
-
Nov 22nd, 2002, 05:51 PM
#2
New Member
conavetna what to whaoct? you not is makan sens
-
Nov 22nd, 2002, 05:56 PM
#3
Hyperactive Member
53323737 15 743 313402 05 740313063. 17 15 4150 743 313402 05 140393403437 5203 743 30210.

-
Nov 22nd, 2002, 05:58 PM
#4
Re: Convert from hex and oct
Originally posted by Mars-Martian
I know converting to hex is Hex() whats converting from hex and oct?
Mars,
There isn't a built in Function to do Hex to Dec OR Oct to Dec.
However, there have been numerous posts on a Hex/Oct to Decimal converters
posted at the Forum. Do a search using keyword "Converter".
-
Nov 22nd, 2002, 05:59 PM
#5
Hyperactive Member
Little late on that post there Fox.
53323737 15 743 313402 05 740313063. 17 15 4150 743 313402 05 140393403437 5203 743 30210.

-
Nov 22nd, 2002, 06:13 PM
#6

I actually was researching my answer; I had a quick flick
tru my VB6 Programmers Reference book for alternates!
-
Nov 22nd, 2002, 10:51 PM
#7
Thread Starter
Addicted Member
thank you all for the hex converting
*bows*
now does anyone know converting from oct to dec?
First person to be able to get what song is currently playing in Winamp 3.
-
Nov 23rd, 2002, 12:12 AM
#8
Just modify (as required) the HexToInt post to:
VB Code:
OctToInt = Val("&[b]o[/b]" & OctDat)
I'll stick it in a Function.......
-
Nov 23rd, 2002, 12:20 AM
#9
Based on DiGiTalErRoR code, like:
VB Code:
Option Explicit
Private Sub Form_Load()
MsgBox HexOctToInt("FF", "&h") ' Pass a Hex value to Convert
MsgBox HexOctToInt("10", "&o") ' Pass an Octal value to Convert
End Sub
Function HexOctToInt(ByVal HexOctDat As String, ConType As String) As Integer
HexOctToInt = Val(ConType & HexOctDat)
End Function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|