Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to remote connect?
Message
From
26/01/2005 15:29:03
 
 
To
26/01/2005 13:57:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00980549
Message ID:
00980929
Views:
37
>Fabio-
>
>>Any test is useless, because 1ns after the success test result,
>>the connection can be died.
>
>While your point is a good one, I disagree that it's "useless". That said, trapping the error in a Try/Catch block would be a great idea.

Nancy, ?

i written:
Send the data and trap the errors.
How the developer trapped the error is another issue.

"Useless" it is relative to an eventual test estimate of valid static connection.
In other words:
IF ConnectionIsGood(h) && this is useless
 TRY
   SendCommand(h,@cmd)
 CATCH
   ...
 ENDTRY
ENDIF
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform