PostNow() Method LOCAL lIsSuccess m.lIsSuccess = THISFORM.upDateEFA() IF m.lIsSuccess = .T. WAIT WINDOW "lIsSuccess was .T." ELSE * The return should be this - but it's not! WAIT WINDOW "lIsSuccess was .F." ENDIF RETURN lIsSuccess upDateEFA()Method RETURN .F.>I am sure I am missing something simple on this.
>LOCAL lIsSuccess >m.lIsSuccess = upDateEFA() >IF m.lIsSuccess = .T. > * The return should be this - and it is! > WAIT WINDOW "lIsSuccess was .T." >ELSE > WAIT WINDOW "lIsSuccess was .F." >ENDIF > > >PROCEDURE upDateEFA >RETURN .T. >>there is no problem.
>PostNow() Method >LOCAL lIsSuccess >m.lIsSuccess = THISFORM.upDateEFA() >IF m.lIsSuccess = .T. > WAIT WINDOW "lIsSuccess was .T." >ELSE > * The return should be this - but it's not! > WAIT WINDOW "lIsSuccess was .F." >ENDIF > > >upDateEFA()Method >RETURN .F. >>and it always is .T. for m.lIsSuccess (even though I am returning .F. in the UpDateEFA() method)