PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → HModify results if trigger cancels modification
HModify results if trigger cancels modification
Iniciado por Frank, 13,jul. 2004 11:23 - No hay respuesta
Publicado el 13,julio 2004 - 11:23
What's wrong ?
In a trigger I put the value "A" in h.todo so the modification is canceled. In the calling procedure the HModify returns "True" and no error is generated. Is this standard behaviour ? This seems strange because the modification is stopped and no data is written. Hversion keeps the same. How can I check if a modification or an addition is committed to the database ? So I have to check some global variable after a database modification ? What is the correct way of working with this feature ? I would have expected that you could check if your modification wasn't committed by checking the result of HModify or HAdd.
Some tips and hints are always welcome.
Greetings,
Frank