I've got the problem with TSocket. When I send the data to another program and must wait for answer but it send to oSocket:bRead. When I send the data, it is in the mainloop (oTimer) but it answer in another routine. How can I get this data?
I try to add received data to public variable and retreive by call function and return this public variable but it doesn't work.
Example
=======
- Code: Select all Expand view
- Function Mainloop
oSocket:senddata()
do while cRecData = 'OK'
end
return
Function OnRead
cRecData := oSocket:GetData()
return
Regards,
Dutch