Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying To And From a User Type
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00138152
Message ID:
00138519
Views:
15
You can one data structure to another using the API RTLMemory function. This is typically declared as CopyMemory as follows:

Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

In your case the destination is the pointer to the string obtained using strptr and the source is the UDT obtained using varptr. Remember to use LenB function to obtain the length of data to be copied.

HTH,
SUN.
SUN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform