Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Commanding pages
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00117842
Message ID:
00118578
Views:
22
Hi Michelle,

If this code does not work on your computer then you have some other problem as this one works perfectly on mine.
WITH thisform.pgfPageFrame
   FOR lnI = .PageCount TO .PageCount + 2
      lcName = SYS(2015)
      .AddObject(lcName, 'Page')
   NEXT
ENDWITH	
The same also works with any page class.

>In the init of the form, I run the code that defines the "TripPage" class. Then I try to use it, and it says it's not a class.

You don't need to run the code. Just do a SET PROC TO Whatever and you should be ok.

>Is there some way to put a programatically created class in a .vcx?

Basically use CREATE CLASS and then cut and paste. There might be something better but this looks like a whole new thread. :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform