Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return .T.
Message
From
01/01/2003 19:13:30
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00737147
Message ID:
00737219
Views:
23
Very interesting. I would consider that a bug, however a minor one.


>>Just curious: if instead of returning .t. or .f. from the method you change a form's property to .t. or .f. and then in the calling function upon return from the function you check the form's value instead, does it recognize that change correctly?<
>
>Oddly enough, the answer is no. I did the following:
>
>THISFORM.TRacytestproperty = .T.
>RETURN .T.
>
>and they both returned .T. as they should.
>
>I then changed them to:
>
>THISFORM.TRacytestproperty = .F.
>RETURN .F.
>
>and they both still returned .T. - which is incorrect.
>
>However, if I had done this instead:
>
>WAIT WINDOW nowait
>THISFORM.TRacytestproperty = .F.
>RETURN .F.
>
>they both would returned .F. - which is correct. Just adding the extra WAIT WINDOW nowait line, or some other change then causes the form to be compiled and reflect the changes.
>
>To take it a step further... I tried the following:
>
>THISFORM.TRacytestproperty = 1
>RETURN .T.
>
>and the changes were made. I then changed the test property to 2,3,4,5,6,7,8, and 9 - and the changes were not reflected. However, when the following was entered:
>
>THISFORM.TRacytestproperty = 90
>RETURN .T.
>
>The changes were made finally - after I added the extra digit to the 9 (which made 90). It just appears that it is not always compiling when a 1 digit change is being made.
>
>I tested a FORM COMPILE per Hilmar suggestions, and the changes are reflected immediately.
>
>Mel Cummings
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform