Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Environment-new property
Message
 
 
À
28/08/2001 14:49:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00549991
Message ID:
00549995
Vues:
12
This message has been marked as the solution to the initial question of the thread.
It's documented under What's New in Visual FoxPro --> Enhanced Commands, Functions, and Classes --> Clasess --> Objects Collection

>I have not seen this mentioned in any of the documentation. The dataenvironment object has a new property OBJECTS which was not present in VFP 6.0
>
>This is a GOTCHA for me right now as my old app's use a custom data environment where I have an array property named OBJECTS.
>
>The following code runs in VFP 6 but tells me:
>
>"'Objects' IS NOT AN ARRAY" in VFP 7.0
>
>
>DEFINE CLASS MYdataenvironment AS DATAENVIRONMENT
>
>DIMENSION OBJECTS(1) && This causes an error in VFP 7
>DODEFAULT()
>ENDPROC
>
>
>To verify this, I created a dataenvironment object in VFP 6 and VFP 7 as follows:
>
>odata = CREATEOBJECT("DATAENVORONMENT")
>Display Objects
>
>In VFP 7 a property named OBJECTS is present that is not present in VFP 6.
>
>
>I'm not sure if anyone else finds this interesting or not.
>Anyway, looks like I have some renaming to do.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform