page number in a window with smartobject

ncremonte

New Member
hello, I have a window that has 3 pages with many objects (smartobject). My question is, is there a way through code to know according to the page what objects I have in it.
 

Attachments

  • page 1.jpg
    page 1.jpg
    172.4 KB · Views: 5
  • page 2.jpg
    page 2.jpg
    170.8 KB · Views: 5

ncremonte

New Member
DEF VAR AS HANDLE NO-UNDO.
ASSIGN hCol = FRAME {&FRAME-NAME}:HANDLE NO-ERROR.
ASSIGN hCol = hCol:FIRST-CHILD NO-ERROR.
ASSIGN hCol = hCol:FIRST-CHILD NO-ERROR.
DO WHILE VALID-HANDLE(hCol):
MESSAGE hCol:INSTANTIATING-PROCEDURE:FILE-NAME
VIEW-AS ALERT-BOX INFO BUTTONS OK.
ASSIGN hCol = hCol:NEXT-SIBLING NO-ERROR.
END.
I was looking but I did not find any method or property to know the object to which page it belongs
 
Top