there is a table : SysCode
there is no data in SysCode initially
if (not CheckIfExistedInSysCode('MachNameMapTob','*',0)) then
begin
InsertSysCodeKind('MachNameMapTob','Map Data');
end;
var existed := CheckIfExistedInSysCode('MachNameMapTob','*',0);
if(existed) then
ShowMessage('@@ * EXISTED!!')
else
ShowMessage('* NOt existed !!');
first ,i run the program
there is no data existed then it will 'InsertSysCodeKind'
there has data inside SysCode
but when run ' var existed := CheckIfExistedInSysCode('MachNameMapTob','*',0);'
i will get error
then i must stop the program
but if i run the program again
there has data inside SysCode
then it run ' var existed := CheckIfExistedInSysCode('MachNameMapTob','*',0);'
no error shown
why ?