ON SELECTION BAR 1 of mypopup myBar1ProcedureIs the method to be called is not dependent on the current state of properties in the object:
procedure myBar1Procedure with newobject("myclass", "myclasslib") .myMethod() endwith endprocOtherwise:
procedure myBar1Procedure if vartype( oExternalReference ) != 'O' * either throw an error or initialize the oExternalReference at this point endif oExternalReference.myMethod() endproc