|
-
August 12th, 1999, 03:55 AM
#1
How can I pass a structure in VB?
Hi,
How can I pass a structure in VB?
or Any equivalent solutions?
Thanks in advance,
Lijo
-
August 12th, 1999, 04:55 AM
#2
Re: How can I pass a structure in VB?
Simple. Define it and pass! :-)
A structure is defined with "Type"
Pulic Type Rect
Left as long
Top as long
Right as Long
Bottom as Long
end type
is the standard definition for a "Rectangle" often used in Windows API.
To pass it to a function define:
public Function someFunc( byref lpRect as Rect)
lprect.Left = ....
end function
A typical windows call would be like this:
GetWindowRect(rect1)......
Look up "Type" in Vb Help. That would be easier.
RK
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
|