Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Environment-new property
Message
De
28/08/2001 14:49:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Data Environment-new property
Divers
Thread ID:
00549991
Message ID:
00549991
Vues:
40
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform