home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Programmer'…arterly (Limited Edition)
/
Visual_Basic_Programmers_Journal_VB-CD_Quarterly_Limited_Edition_1995.iso
/
code
/
ch21code
/
main.bas
< prev
next >
Wrap
BASIC Source File
|
1995-08-14
|
728b
|
28 lines
Attribute VB_Name = "Module1"
Option Explicit
' Create an object variable.
Dim lngValue As New clsLong
Sub Main()
#Const DebugBuild = 0
' Test code for debugging.
#If DebugBuild Then
' Set the object's Value property.
lngValue.Value = &HFEEDBABE
' Display the value of
' the bytes.
Dim strHexResult As String
strHexResult = Hex(lngValue.HiWord.HiByte) & _
" " & _
Hex(lngValue.HiWord.LoByte) & _
" " & _
Hex(lngValue.LoWord.HiByte) & _
" " & _
Hex(lngValue.LoWord.LoByte)
' Display the result in the Debug window.
Debug.Print Hex(lngValue.Value) & " " _
& strHexResult
End
#End If
End Sub