- 90% VFP behaviour not fire a error when the current WA is empty: RECCOUNT() RECNO() TACNO() DBF() ISREADONLY() ISRLOCKED() FLOCK() ... - But for me this is not perfect, perfect is return NULLHovewer, more serious reasons exists.
DO CASE CASE ISTRANSACTABLE() * ALL OK, I CAN CONTINUE CASE ISNULL(ISTRANSACTABLE()) && or EMPTY(ALIAS()) if ISTRANSACTABLE() return .F. * now i can fire a my error THROW CREATEOBJECT('AliasNotFound') * or resolve the situation SELECT AliasThatIWantHere ..... OTHERWISE ENDCASE ...and it could seem equivalent to yours code, but it it is not.
IF EMPTY(ALIAS()) * now i can fire a my error THROW CREATEOBJECT('AliasNotFound') * or resolve the situation SELECT AliasThatIWantHere ..... ENDIF IF ISTRANSACTABLE() ENDIFMy code serves in order to recognize one normal situation and resolve it.