Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Missing Feature In VFP 7.0?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00697186
Message ID:
00697830
Views:
18
David,

Why are you copying forms instead of creating form classes for each?

>I have several template SCX files for the different types of forms I use. My current form builders copy and rename a template file then use the following commands to open the new form file in design mode, create a reference to it and then add objects and set properties:
>
>
MODI FILE (newfile) NOWAIT
>
>FOR ln = 1 TO _SCREEN.FormCount
>   IF _SCREEN.Forms(ln).Name = "frmTemplate"
>      lo = _SCREEN.Forms(ln)
>      EXIT
>   ENDIF
>ENDFOR
>
>lo.Caption = "My New Caption"
>...
>
>If I am using the code:
>
>
CREATE FORM (myform) AS myForm FROM myForms NOWAIT
>
>don't I first have to convert my template SCX files into a VCX class file?
>
>Is there some way I can use the Class Designer to accomplish this or does this just also work within the Class Designer tool?
>
>
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform