Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically adding pages
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586852
Message ID:
00586908
Views:
16
Kalim,

Create a page class that has your code in it already and use that class for creating the additional pages.
* PageClass.prg
DEFINE CLASS MyPage AS Page

FUNCTION Activate
Wait window "I am active"
ENDFUNC

ENDEFINE
Now use that class;
* some code in the form
WITH Thisform.PageFrame
   .NewObject("MyNewPage","MyPage","Pageclass.prg")
   WITH .MyNewPage
      .Caption = "Hello a new page"
   ENDWITH
ENDWITH
Now the pageframe in the form will have a new page added and that page will show the wait window when it is activated.
Previous
Reply
Map
View

Click here to load this message in the networking platform