Thursday, December 1, 2016

What is the difference between CLEAR & RESET Functions in NAV?


What is the use of RESET & CLEAR : -

Basically when we use a want to reuse a variable we need to unapply all the filters that are previously applied on that variable, this is why we need to CLEAR or REST that variable.

If its string type we use ABC=''; IF its Integer type we use ABC=0;
OR we use CLEAR(ABC);
Now, when we are using a RECORD type variable we always use


CLEAR(ABC) or ABC.RESET;

Difference is that while using RESET it clears all the filters already applied on that variable and if any key is changed it will reset the primary also.


CLEAR is 1 more step Ahead that it will Clear all the fields individually from this recor type variable.

For reference please check :-After RESET


After Clear



No comments:

Post a Comment