Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get name of obj. which fails to load?
Message
 
À
11/01/2006 11:54:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01085697
Message ID:
01085848
Vues:
12
>So how do I get the order in which the objects load?

Peter,
I believe that VFP parses the objects in the order in which they appear in the VCX, which is a table like any other. You can issue the command,
use myVcx.vcx
locate for objname = "myForm"
browse nowait
You should see records for the container object itself itself (the form), then the next record will probably be for the dataenvironment, then objects in the container (controls on the form). BE VERY CAREFUL NOT TO CHANGE ANYTHING! It is entirely possible to edit within the VCX but there are different rules here and you have to know them. For right now, at least you can look and see what order the objects appear. Once you have done that, you can hit close the browse window and then close the table, i.e.,
use
Then you should be home free.

For what it's worth, there's another easy way of doing this ... just make a new copy of the class and remove half the objects on the form. Does it work? The you know its one of the missing objects. Simple, but accurate.

//Art
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform