Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return .T.
Message
From
01/01/2003 09:52:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00737147
Message ID:
00737149
Views:
24
>I am sure I am missing something simple on this.
>
>In the following code:
>
>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.
>
>However, in a Form I have:
>
>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)

What does "it" refer to? What is always .T.? The value returned by the method, or the variable?

Hilmar.

>
>Anyone have a clue what I am missing on this?
>
>Mel Cummings
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform