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:
00118590
Views:
25
Ok, that works. I'll have to do some more experimenting with it. Maybe I had the syntax wrong or something.

I don't understand what this SET PROC is supposed to do. I read the help file on it and it seems like it just tells VFP what the procedures are. But it knows enough to run the .prg without that, so what's it for?

If I do CREATE CLASS, that opens up the visual designer. How do I paste code into that?

Thanks,

-Michekke


>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