Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataenvironment and Views
Message
 
To
14/07/1998 13:37:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00117227
Message ID:
00117261
Views:
16
Ho Bob,

Unfortunately, the Controls collection is not there in the DE. It should have been there though...

Developers who use programmatic DE end up implementing the tables(), views() and relations() collections or just the Controls() collection.

>>Hi All --
>>
>>Does anyone know of a way to programmatically scan through cursors in a visually-created DataEnvironment and determine which are views? I have a clunky way of doing it but I'm sure that someone else has a much better way.
>>
>>Thanks.
>
>I don't have any code, and don't know you 'clunky' way... so, just a few thoughts...
>
>Isn't the DE a subclass of a container? This container contains cursor objects and/or relation objects.
>
>So, the DE shoule inherit all the containers properties such as .controlcount and .controls(index)
>
>So.. could you loop through the controls property array, and look at the .controls(index).name
>
>Ok... now that you have the name of the cursor you can look at the SourceType using CURSORGETPROP() ???
>
>Now, I haven't tried all this, but I think it is a feasable approach? What was your method?
>
>BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform