I'm "coding in email", so forgive my mistakes:
 
subroutine myfunc(string as_windowName)
window lw_x
long ll_i
 
lw_x = CREATE USING as_windowName
for ll_i = 1 to UpperBound(lw_x.control)
   MessageBox(as_windowName, "Control "+String(ll_i)+" is "+"named
"+lw_x.control[ll_i].className())
next
DESTROY lw_x
return
end subroutine
 
You can also use lw_x.control[ll_i].typeOf() if you need to do processing
based on the type of object (e.g., recursing through UserObject! or Tab!,
which also have an array of WindowObject's named "control").
 
Note that the above code will crash if you pass it the name of an object
that is not a window.
   --dang

-----Original Message-----
From: Edwin Terreros [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 07:35
To: PFCSIG
Subject: PFCSIG Controls in windows


Hello Friends
I want to know how to obtain the controls contained in a window with a
function that receives the name of the window as an argument (but as type
string)
Thanks for your help.




                    

> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]

Reply via email to