Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I set an Object to another one's proprerty?
Message
 
 
À
24/08/1999 16:10:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00257284
Message ID:
00257289
Vues:
18
>Hello,
>
>Here is a quick look at what I am trying to do (I am NOT very good in FoxPro):
>
>I have a BackupJob object (xBackup) and a FileSelection object (xFiles)
>
>Basically, what I need to do is pass xFiles to xBackup property called selection.
>
>In VB it would look like this:
>
>xBackup.Selection = xFiles
>
>Foxpro does not seem to like this as it does not recognize xFiles as being an object.
>
>Both xBackup and xFiles are in seperate OleContainers.

You need to include the parent object of xfiles:

xBackup.Selection = ThisForm.Container_Name.xFiles.Value

I have assumed xFiles is a textbox. If it is a combobox, change Value to DisplayValue if needed.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform