|
WebDev24 - Testing for Internet Connection |
Débuté par Ericus, 26 avr. 2025 05:02 - Aucune réponse |
| |
| | | |
|
| |
Membre enregistré 7 messages |
|
Posté le 26 avril 2025 - 05:02 |
Good day
As I understand it, and please correct me, when I am using HFSQL Clietn/Server I can do something like this before updating my tables.
IF NOT HOpenConnection(MyConnection) THEN Error("Cannot connect to server. Please check your connection settings.") bSuccess = False RETURN END
After that I do HTransactionStart, HTransactionCancel and HTransactionEnd as the situation seems fit.
However should I not test that an active internet connection exists in the first place?
What happens when I am updating numerous tables in the database, checking that HAdd and HModify succeed but somewhere along the line the internet connection is dropped.
Does WebDev know about this. Does HTransaction know about this.
Thanks very much |
| |
| |
| | | |
|
| | | | |
| | |
|