sockets

Kenneth Brody kenbrody at spamcop.net
Tue May 15 08:23:16 PDT 2012


On 5/15/2012 10:59 AM, Kenneth Brody wrote:
> On 5/15/2012 10:44 AM, Ed Hilovsky wrote:
>>          ■ If: yr ne "0"                                                         ■
>>          Then: yv=socketerror();show "@Error"<yv;end
>>
>> Doesn't display a thing. It is blank.
>
> What about the rest of the questions I asked?
[...]

Also, it is not possible for SOCKETERROR() to return something other than a 
number*.  If no error has occurred, it returns zero.  Perhaps yv is defined 
with a length/edit that cannot hold the number?  Why use a temporary 
variable to hold the value?

     mesgbox "Last socket error = " < socketerror()


[*] If you have pre-5.6.07 and do not have a socket license, it was possible 
for socket functions to crash filePro rather than return the error code.

-- 
Kenneth Brody


More information about the Filepro-list mailing list