Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding methods to a class object
Message
From
17/08/2007 12:07:07
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01248400
Message ID:
01248802
Views:
30
Well, in the OCX on the original form, I send it a character string. Not sure what the code below (from Hugo) is exactly trying to do.

>What should GetData method of WinSock receive? It looks like it should be an object and not a string from the error.
>
>>Trying to use this, but getting an error that @StrData does not evaluate to an object. I know the THISFORM needs to be taken care of, but this is the line before that. Any help appreciated.
>>
>>
>>
>>	**********************************************************
>>	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.OBJECT.GETDATA(@strData)
>>		THISFORM.txtOutput.VALUE = strData
>>
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform