Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Couple questions about a procedure in a class definition
Message
From
23/08/2007 17:07:20
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
23/08/2007 17:00:38
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01250023
Message ID:
01250026
Views:
14
>Couple questions as to what this procedure is doing. It works, but I'm not sure about the "@strData" in the GETDATA. Is that a variable by reference? So that after GETDATE runs, the value of strData is returned? Also, why the "SPACE(256)" line? Is it to define it as a string, or to define the length, or both? It works with strings much larger than 256, so I'm just curious what the purpose is. Thanks!
>
>
>	PROCEDURE DMSWinsockControlEvents_DataArrival(bytesTotal AS NUMBER) AS VOID ;
>		HELPSTRING "Occurs when data has been received from the remote computer"
>
>		strData = SPACE(256)  && Define string to pass to GetData
>
>		THIS.oSock.GETDATA(@strData)
>
>		? strData
>
>	ENDPROC
>
Variable sent to GetData by reference. GetData will put data into that variables memory space so you can see the changed content after the GetData function finishes.
Previous
Reply
Map
View

Click here to load this message in the networking platform