hello good people
I have an ID in my record
PROC ID
preproc
if visualvalue(ID) = notappl then
ID = 1;
else
ID = visualvalue(ID) + 1;
endif;
when i want to modify a record the ID change and take ID=ID+1
i don't want to have this probleme
how can i do ?
kind regards
ID of record
Re: ID of record
Hi,
Set the code to work only when in add mode as follows:
Set the code to work only when in add mode as follows:
Code: Select all
PROC ID
preproc
if demode() = add then
if visualvalue(ID) = notappl then
ID = 1;
else
ID = visualvalue(ID) + 1;
endif;
endif;