On May 26, 2006, at 11:13 AM, Jonathon Bevar wrote:
Hi all,
Ok I have a new project which is to convert VB code to RB. I have
the following:
Public Type RetPacketStructure
B0 As Byte
B1 As Byte
B2 As Byte
B3 As Byte
B4 As Byte
B5 As Byte
B6 As Byte
B7 As Byte
End Type
Now where do I put this in RB?
In REALbasic this is called a "Structure". Create a new structure in
a module somewhere using the "Add Structure" command, name it
"RetPacketStructure", and give it fields exactly as you've specified
them above.
Declare Function RegCloseKey Lib "advapi32" (ByVal hKey As Long) As
Long
Now would LONG be DOUBLE in RB? And where would i put the above in
RB code?
"Long" in VB means "Integer" in RB. Put that statement inside the
method where you intend to call it.
Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>