On Jun 15, 2006, at 9:03 AM, Chuck Pelto wrote:

Greetings All,

I'm interested in developing a module that will allow me to pull field/item names, types and data from a window based solely on the window being passed as a param to the method inside the module.

For example:

I have a window that has several textedit fields in it.

I pass the name of the window to this method in the module.

The method:

[1] Determines the objects in the window.
[2] In sequence, determines the nature of each object.
[3] If the object is a textedit object, it gets the name of the object. [4] If the object is a textedit object, it gets any data out of the object.

Is this feasible?


Sure. Just pass a reference to the window as a parameter in your method. For example, your method declaration:

Sub MyExtractor(w as MyWindow) // but not w as window, in your case
// use ControlCount, Control() and IsA to get your data
End Sub

Best,

Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to