Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page enabled = .F. does not work as expected
Message
From
01/11/2006 08:40:55
 
 
To
01/11/2006 08:30:25
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01166110
Message ID:
01166113
Views:
11
Is it in a page refresh? If so, THIS refers to the page, not the pageframe. When do you actually want to disable or enable a page? If it is based upon the value of the NtcCheck field, then perhaps in that field's lostfocus would be better (you'd have to modify the code of course). Also put the below code in the pagegframe's refresh (in addition):
FOR EACH loPage in This.Pages
   loPage.Enabled = loPage.Enabled
ENDFOR
>
>With This
>   If ThisForm.InventoryChecks.NtcCheck.Value = .T.
>     ._Page2.Enabled  = .T.
>   Else
>     If .ActivePage  = 2
>       .ActivePage = 1
>     EndIf
>     ._Page2.Enabled = .F.
>   Endif
>EndWith
>
>
>The above code runs in the Refresh method of Pages1 and should sometimes disable ._Page2.
>
>Well, it sort of does, but never initially, and not always subsequently - although the code does run and it appears the condition for disable is met.
>
>What might be I missing?
>
>TIA
.·*´¨)
.·`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
Reply
Map
View

Click here to load this message in the networking platform