Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Environment-new property
Message
From
28/08/2001 14:49:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Data Environment-new property
Miscellaneous
Thread ID:
00549991
Message ID:
00549991
Views:
46
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.
Next
Reply
Map
View

Click here to load this message in the networking platform