PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 25 → Wx - Hibernate
Wx - Hibernate
Iniciado por Boller, 22,mar. 2021 21:53 - No hay respuesta
Miembro registrado
4.549 mensajes
Publicado el 22,marzo 2021 - 21:53
//GLOBAL INIT PROJECT

myServerIp_A is connection = myServerIp
myServerIp_B is connection = myServerIp



Procedure HConnectWithHibernet()
Ok is boolean

IF HOpenConnection(myServerIp_A) = True
HChangeConnection(*, myServerIp_A)

Ok = True

ELSE

Ok = False

IF HOpenConnection(myServerIp_B) = True
HChangeConnection(*, myServerIp_B)
Ok = True
ELSE
gnTentativa++
IF gnTentativa <= 3
HconnectHibernet()
END
END

END

RESULT ok



Procedure Hibernet()
HCloseConnection(myServerIp)
HCloseConnection(myServerIp_A)
HCloseConnection(myServerIp_B)


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/