Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop the user from changes pages on pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00659349
Message ID:
00659378
Views:
29
This message has been marked as the solution to the initial question of the thread.
Hi Kirk
You can set the enabled property for all but the active page to .f. when editing or adding and reset Enabled to .t. when not editing.
*!*if in edit mode
with thisform.pageframe1
for m.lnI = 1 to .pagecount
  if  .ACTIVEPAGE = m.lnI
     *** set  enabled .t.
     .PAGES(m.lnI).ENABLED = .T.
  ELSE
    .PAGES(m.lnI).ENABLED = .F.
  endif
next
endwith

*!*if not in edit mode
with thisform.pageframe1
for m.lnI  = 1 to .pagecount
    .PAGES(m.lnI).ENABLED = .T.
next
endwith
HTH
Elmer
Previous
Reply
Map
View

Click here to load this message in the networking platform