General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only