Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying an Object - avoiding single object references
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00365455
Message ID:
00366853
Vues:
13
XML example:
<docroot>
   < object>
     <prop1>value</prop1>
     <prop2/>
     <prop3/>
     <aprop>
         <aprop_item>
            <childobjprop1/>
            <childobjprop1/>
         </aprop_item>
         <aprop_item>
            <childobjprop1/>
            <childobjprop1/>
         </aprop_item>
      </aprop>
   </object>
</docroot>
This works today with wwXML and it will import this object as long as the object and all surrogates pre-exist with their property members set iether to blank (but typed) or some values.

The problem is array based objects - I can't expect people to pass in the right number of items in the array, although the first item is required. WIthout the right number of objects in place I need some way to 'copy an object'.

Right now what happens is that hte import works perfectly, but all items in the object array get the same values because they're all referencing the same object.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform