On Jun 15, 2006, at 12:03 PM, 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?

I ask because I'm not seeing any calls in the Window Class of the Language Ref that looks like they might facilitate this sort of activity. Where else should I look?

What you want are the functions Window.Control and Window.ControlCount.

For i as Integer = 0 to w.ControlCount - 1
  If w.Control(i) IsA EditField then
    dim itsName as String = Control(i).Name
    dim theText as String = EditFiield(Control(i)).Text
  End if
Next

Charles Yeomans
_______________________________________________
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