Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Could not figure out how to create a form in VPME
Message
De
08/09/2009 18:52:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual ProMatrix
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01423127
Message ID:
01423194
Vues:
88
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>The instructions of creating a new form seem to be straightforward, but I could not figure this out.
>
>
>To create a form in VPM Enterprise: Basic Steps
>
>1. Check Form and Control Class Libraries: Before you create any form, always make sure that the default form class template and the registered form and control class libraries are correct for the project. Open the Options dialog on the Visual FoxPro Tools menu and check the Forms and Controls tabs. See Setting Up VFP Options for Form and Control Classes for more details on this subject.
>
>2. Open Form Editor: Use the Object Builder to open a Form Editor for a new form by either creating a menu option for the form or by adding the form to another Object Editor's Called Objects list.
>
>

>
>I don't understand how can I do #2 - and therefore can not proceed with building the form. If I open the project, go to documents, new, it creates a new form based on default base VFP form.
>
>I want to create a no_record form and want to somehow be able to drag fields, etc.
>
>What should I do now?
>
>Thanks.

It's relatively simple, really, and you can do it ouside the Object Builder, if you'd like. Here's how:

1. Create a new form (e.g., MODIFY FORM FORMS\MyNewForm
2. In the form control toolbar, add ProForms from your current VPME project folder
3. Drag and drop the type of form you want to create from the form controls to the form
4. This is a bit tricky: Now you have to remove the the original form UNDERNEATH the just dragged and dropped form (in VFP9 you may need to do this twice before the system "believes" that this is what you really want to do. Then you have the remove the formset from the dragged and dropped form. Use Form -menu to do these tasks.
5. Add your tables/views to the data environment, and mark one of them as the main Initialselectalias
6. Now you can run a form builder (rightclick the form, select VPM form builder) Or you can drag and drop data fields from the data environment onto to form one-by-one, then run a builder on those (VPM control builder), which sets the controls up with all kinds of metadata from the data dictionary.

Cheers,
Pertti Karjalainen
Product Manager
Northern Lights Software
Fairfax, CA USA
www.northernlightssoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform