Nadya,
>BTW, may these lines cause troubles?
>
>IF pemstatus(thisform,'hasnavstand',5) and thisform.hasnavstand
> thisform.navstand.navupdate()
>ENDIF
The problem happens if you make two or more calls to pemstatus() within the same line of code. It doesn't have to be inside an if:
if ( pemstatus() or pemstatus() )
llOk = pemstatus() and pemstatus()
both of those lines can sometimes cause internal object references that can't be cleared up with VFP code.
The above lines need to be recoded to separate statements:
llX = pemstatus()
llY = pemstatus()
if ( llX or llY )
llOk = pemstatus()
llOk = llOk and pemstatus()