DAY 031: BYVAL
#7
Correct on UDTs, Steve...

Example

Code: (Select All)
FUNCTION GetCursorPos (lpPoint AS POINTAPI)


POINTAPI is a UDT. Put BYVAL in there and it won't compile.

TYPE POINTAPI
    X_Pos AS LONG
    Y_Pos AS LONG
END TYPE

I haven't had any experience with arrays though. Now I've successfully accomplished defining the variables as LONG, instead of passing them as _OFFSET, so I needsome more clarification from Spriggsy I guess.

Pete
Reply


Messages In This Thread
DAY 031: BYVAL - by Pete - 12-12-2022, 02:37 AM
RE: DAY 031: BYVAL - by mnrvovrfc - 12-12-2022, 08:43 AM
RE: DAY 031: BYVAL - by SpriggsySpriggs - 12-14-2022, 05:01 PM
RE: DAY 031: BYVAL - by Pete - 12-14-2022, 07:15 PM
RE: DAY 031: BYVAL - by SMcNeill - 12-14-2022, 07:57 PM
RE: DAY 031: BYVAL - by SpriggsySpriggs - 12-14-2022, 08:06 PM
RE: DAY 031: BYVAL - by Pete - 12-14-2022, 08:10 PM
RE: DAY 031: BYVAL - by mnrvovrfc - 12-14-2022, 09:06 PM
RE: DAY 031: BYVAL - by SpriggsySpriggs - 12-14-2022, 09:18 PM



Users browsing this thread: 1 Guest(s)