Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about ADDOBJECT
Message
De
29/04/1999 13:32:29
 
 
À
29/04/1999 12:22:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00213514
Message ID:
00213550
Vues:
33
>>I am using the addobject to add a grid to my form during run time. How can I control the position of the grid on the form in the code?
> >
> >Thanks a lot
>
>> Subclass the grid, change the positions, and save as class. Add this object to the form instead.
>> This is a neat way of also setting the column details and data source details for a grid and having it always retain these settings.
>> When you change your data source, remove/re-add the object!
>
>Thanks y'all, it really helps.
>
>Another question, how can I check if the object already exists, so I can remove and readd it when my recordsource changes?

If Type("thisform.myobject")="O" and not isnull(thisform.myobject)
=messagebox("Object exists")
else
=messagebox("Object doesn't exist")
endif
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform