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
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
Last edited by alorincz; 10-24-2002 at 04:48 AM.
I used the clear block it raised an exception,i handled the exception too,but the clear block is not working
1) What exception was raised?
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.
Click Here to Expand Forum to Full Width