|
WebDev24 - Testing for Internet Connection |
Iniciado por Ericus, 26,abr. 2025 05:02 - No hay respuesta |
| |
| | | |
|
| |
Miembro registrado 7 mensajes |
|
Publicado el 26,abril 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 |
| |
| |
| | | |
|
| | | | |
| | |
|