PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → WebDev24 - Testing for Internet Connection
WebDev24 - Testing for Internet Connection
Iniciado por Ericus, abr., 26 2025 5:02 AM - Sem resposta
Membro registado
7 mensagems
Publicado em abril, 26 2025 - 5:02 AM
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