thibaan
10th April 2006, 18:02
Hi,

What is the condition to save data when alternate between forms?
I think that it happens when the registry changes.
In my case, when i change from form 3 to form 2, or to form 1, nothing happens, but when i change from form 3 to form 4, then i receive the message: "Data has been changed, do you want to save your data?".
I want to remove this message. Somebody help me?

mark_h
10th April 2006, 19:48
I do not recall getting that question, but the one time I used mutliple forms I did this:

form.all:
after.form:
execute(update.db)

Not sure if it solves your problem, but that is what I have in one program.

mgakhar
10th April 2006, 22:15
Do you have some field that is present on both forms 3 and 4? And if you are changing value in form 3 and you move to form 4 you get this error message?

Of course if you want to save data when you change forms, then Mark's solution should work.

MG.

thibaan
11th April 2006, 14:43
Mark´s solution worked ok, thank you! But i´d like to know how can i change between them without saving data. From form 1 to 3 i use the main table, the 4th uses other table´s fields.
I´ve tried to use this code:

choice.update.db:
before.choice:
if condition then
choice.again()
endif

but the message appears before this code.

Thank you!