monica1
17th December 2004, 13:15
I have a session with the command delete.
When the user click the button, depending a condition, delete the selected record or modify it.

The session has a main table with DAL.
How can I modify the record or delete it depending of the condition. I can use another button than the delete one.

Thanks,

grajenda
17th December 2004, 13:33
Depends on the condition either use dal.update() or dal.destroy()

monica1
17th December 2004, 13:36
But, where must I write this call?

When I click the button the program automatically goes to before.dal.destroy in DAL script.

en@frrom
17th December 2004, 16:11
In the program script write:

choice.mark.delete:
before.choice:
your condition

you can use for instance the execute function to jump to modify.set