Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy an Object
Message
De
16/07/2006 05:30:03
 
 
À
15/07/2006 18:49:14
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01136724
Message ID:
01136760
Vues:
11
>
>Object1 = CreateObject("Custom")
>Object1.AddProperyt("Test", "Green")
>Object 2 = Object1
>Object2.Test = "Red"
>?Object1.Test     && Returns Red not Green
>
>Object 2 = Object1   && apparently doesn't copy the object, it just gives it an additional name.
>
>
>How can I make an independant copy of Object1?

You cannot clone an object in VFP.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform