Спасибо! Согласен, подумаю..
Вот более корректный код (написан до твоего поста и в процессе тестрирования)
PHP код:
static boolean exist(tmpMissedPositionTable _tmpCursor)
{
tmpMissedPositionTable tmpCursor;
boolean ret = false;
;
if(!_tmpCursor.BestItemId)
{
ret = true;
}
if(!ret)
{
tmpCursor.setTmpData(_tmpCursor);
select tmpCursor
where tmpCursor.BestItemId == _tmpCursor.BestItemId;
}
if(tmpCursor.RecId)
{
ret = true;
}
return ret;
}