Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Whats best way to programatically create a form.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00666656
Message ID:
00666692
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Hi Rodd,

>Thanks for your help. However, I forgot some info in my original post. Please see my response to Irv Adams. Message 666675.

Ok, now it's clearer :) Now, let's see ...

>I could issue a "copy structure" command and then insert records into the .scx table. However, when you create a form, there are 4 records that are automatically added and I'm not sure of the meaning in some of the fields. For instance there is a record who's uniqueid is screen and one who's uniqueid is RESERVED. In the last record (the one with the uniqueid of reserved), the only data it has is in the field named Properties. This field contains (Arial, 0, 9, 5, 15, 12, 32, 3, 0). I don't know what those elements stand for or when or why I would put them there if I created this record.

I would recommend that you simply create a new form with CREATE FORM, save it and use the SCX as the template for any of your forms. If you're "only" adding controls, copy the scx with those four records, add your own records and it should do what you want.

You could also create a sample form, that looks like one of the forms that should be generated. Then have a look at the SCX. This way you can learn many things (at least I did it that way).

If you want to add tables to the DataEnvironment or want to do other things like adding properties, method code etc. the whole thing gets a little more complicated.

>Also, if I were to create the form building it record by record, is the time stamp the elapsed seconds? Is there anything special in regards to the uniqueId field?

You don't have to care about the timestamp fields. They are automatically filled in, when the form is compiled. For the uniqueidid field you can simply use SYS(2015).

HTH,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform