if ( lSomeCondition ) this.DoSomething endifVFP knows that you have to be talking about a method, it's not syntactically correct to be talking about a property on the this.DoSomething line so it calls the DoSomething method. Inside the IF condition you must use the () to remove the ambiguity:
if ( this.DoSomething() ) this.DoSomethingElse() endif>How do I do the equivalent of "IF thisform.DoSomething() THEN..." where "DoSomething" returns .T. or .F.?