Click to See Complete Forum and Search --> : forms6i


rao
10-23-2002, 07:55 PM
Hi gurus
i have place two blocks,one is a datablock and the other one is the control block.i have place some items on both block.i am displaying connect string and username under control block.i have got a button clear form,when i press clear form i dont wont to clear these two items i.e connect string and username.please let me know how about doing this
thanks:confused:

alorincz
10-24-2002, 04:16 AM
Instead of using CLEAR_FORM why don't you clear all the blocks manually, all the blocks but that one, that you don't want to be cleared? Use CLEAR_BLOCK

rao
10-27-2002, 10:23 PM
I used the clear block it raised an exception,i handled the exception too,but the clear block is not working

alorincz
10-30-2002, 02:15 AM
1) What exception was raised?

2)
There may be a way, bat it's a nasty way.
You could save the content of the items in variables (local variables in your clear_form procedure), and after clearing the form with CLEAR_FORM(NO_VALIDATE), you can repopulate the block with the variables. If you have more items, that you want to repopulate you could use a record variable.