Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in VFP 5.0?
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00189302
Message ID:
00189623
Views:
9
>Note: I use a traslator.
>
>I have a form of the type one to several. I need that the information stays and cancel in block. When I run the method to save data of the form, this informs me that it cannot insert the registration in the table father, (I fail desencadenante INSERT), but if I run him for the debug, the code is executed perfectly (it has already happened me several times that the information that generates the debug is different to that of time of run). I have VFP 5. 0 and I am going mad. Please, if some has some suggestion, make it to me to know.
>
>*-- Original
>Tengo un formulario del tipo uno a varios. Necesito que la información se guarde y cancele en bloque. Cuando corro el metodo guardar del formulario, este me informa que no puede insertar el registro en la tabla padre, (fallo desencadenante INSERT), pero si lo corro por el depurador, el código se ejecuta perfectamente (ya me ha ocurrido varias veces que la información que genera el depurador es distinta al de tiempo de corrida). Tengo VFP 5.0 y estoy enloqueciendo. Por favor, si alguno tiene alguna sugerencia, hagamelo saber.


Mario,
El único caso conocido de barabaridades del desencadenante es con llaves compuestas (compound keys) que son llaves que son la concatenación de varias llaves. Si usas una llave primaria para la tabla hija y por supuesto la clave de la tabla padre en 2 campos distintos de la tabla hija no has de tener problemas.

Jose
Previous
Reply
Map
View

Click here to load this message in the networking platform