Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug: DE memberCount or equal property it is lacking
Message
 
 
To
27/10/2004 06:03:28
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00954804
Message ID:
00954871
Views:
23
Fabio,

Since the DE.Objects is a collection it natively has a Count property.
? detest.dataEnvironment.Objects.Count
Just like the form Objects collection:
? detest.Objects.Count
>Previous issue Thread #952371
>
>Bug/Issue : 5 of 27
>
>TITLE: Bug: DataEnvironment memberCount or equal property it is lacking
>
>VERSION: 09.00.0000.1720 and previous
>
>Note:
>the DataEnvironment class have the Objects collection,
>then
>- for enumerate the objects i can use only:
>
FOR EACH ...
>- i cannot directly to use
>
FOR index=1 TO ...
>- if i want the count of the objects i have to do
>( workaround into a _Access method )
>
>objectCount = 0
>FOR EACH obDE IN m.de.objects
>    objectCount = m.objectCount + 1
>ENDFOR
>? m.objectCount
>
>- if i want to known if a member exists
>
TYPE("m.this.objects")
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform