sockets

Ed Hilovsky lgf at lgfcomputers.net
Tue May 15 08:26:24 PDT 2012


It is still blank, using your exact code.

│               │  BALANCE: ┌──────────────────────┐                           │
│               └───────────│ Last socket error =  │                           │
│                           └────── Press  Enter   ┘   

 -- 

Ed Hilovsky 
LGF Computers 

Main Office   : (724) 463-7633 
Toll Free         : (800) 653-8479 
Fax Number : (866) 448-5415 
Cellular           : (412) 289-1773 

email  lgf at lgfcomputers.net 


-----Original Message-----
From: Kenneth Brody [mailto:kenbrody at spamcop.net] 
Sent: Tuesday, May 15, 2012 11:23 AM
To: lgf at lgfcomputers.net
Cc: 'filepro-list'
Subject: Re: sockets

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