Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

how to write hex conversion in VB 6.0

$
0
0
Hi ...

i try to follow the code below for my hex coversion somehow it says "sub or function not define" in hexadecimal line.

Code:

Private Sub Hex_Click()
 Dim value As Double
 Dim hex As Double
 
    Dim hex_val As String
 
    hex_val = Hex(10) 'converts 65535 to FFFF
    MsgBox hex_val
 
    lbldisplay.caption= CDbl("&H" & hex_val) 'coverts &HF to 65535
    MsgBox value
End Sub


Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>