I'm trying to store information about data entry mode, i.e. whether the case is in add or modify mode, and whether the case is partially saved, i.e. ispartial() = 1.
I made the following function in my application
Code: Select all
function masih_partial()
if demode() = 1 & ispartial() = 1 then
masih_partial = 1;
elseif demode() = 1 & ispartial() = 0 then
masih_partial = 2;
elseif demode() = 2 & ispartial() = 1 then
masih_partial = 3;
elseif demode() = 2 & ispartial() = 0 then
masih_partial = 4;
endif;
end;
I put this function in OnStop() global function, postproc in PROC LEVEL, and the last item in my form.
does anyone have any idea where to put the function to achieve my goal?
cheers,
Hafiz