Progress-4GL - How find an object

Status
Not open for further replies.
É

Éllen Sousa

Guest
I need to find an object in a progres session... I don´t know how to do... only with a sequential search....but it´s very expansive (time) if the number of objects is relative big.

Is there another way to do this?

Define Variable myObject As Char no-undo. define variable loop as Progress.Lang.Object no-undo.

Assign myObject = "1234".

loop = Session:First-object. Do While valid-object(loop) : if (loop:tostring() = myObject) then Do:

MESSAGE "Found!!!" VIEW-AS ALERT-BOX INFO BUTTONS OK. Leave. End. loop = loop:Next-sibling. End.

Thank you,

Continue reading...
 
Status
Not open for further replies.
Top