Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying A Form
Message
From
23/07/1998 15:03:54
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00119790
Message ID:
00120677
Views:
31
>>>Is there a way to copy a form and all of its contents?
>>>
>>>I have an application where I need to present basically the same form on the screen, but using different tables (viewing history as opposed to viewing current data).
>>>
>>>Thanks in advance. - CH
>>
>>It's appropriate situation to save and use this form as a class. Surely, you can get simple solution too by copying/renaming scx/sct files.
>
>Edward: Thanks for the advice. I found a real easy way to copy/rename is to pull up the form and use File > Save As... Re: Classes, I'm beginning to understand a little more about classes, but still haven't arrived at a good practical usage understanding. I understand that a class is a template or blueprint that defines the characteristics of an object and describes how the object should look and behave. I tried saving my Form as a class (I named it 'Browse', since that's how I was using it mainly - to look at records in a grid), but then I couldn't figure out how to get that class to another form as simply as just opening the form and using File > Save As ...
>
>I really appreciate all the help I get on UT, and I'm trying to put in tid-bits of help where I can, esp. in the Windows NT/95 forum, which is my forte and what I am certified in. Thanks Again, CH.

When you have form class, you instanciate form objects from this class using CREATEOBJECT(). The obvious advantage of a class (and subclassing) is that you can create multiple instances which will inherit common things and acquire distinctions.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform