Trying to get a Variable from a parent window of response window (both windows are inherited - I do not have the source code). I'm able to loop trough all parent variables, objects, controls etc. but I can't seem to read any of the variables. This code is for "ok event". Appreciate any help.
window lw_active, w_parentwindow
string ls_winname, ls_libname, ls_wintitle
ClassDefinition cd_windef
w_parentwindow = this.ParentWindow()
lw_active = w_parentwindow.GetFirstSheet()
if isvalid(lw_active) = True then
ls_winname = lw_active.classname()
cd_windef = FindClassDefinition(ls_winname)
ls_libname = cd_windef.LibraryName
ls_wintitle = lw_active.title
messagebox(ls_winname, ls_libname+'~r~n~r~n'+ls_wintitle, Information!)
string s, lineend
integer li
VariableDefinition vard
lineend = "~r~n"
FOR li = 1 to UpperBound(cd_windef.VariableList)
vard = cd_windef.VariableList[li]
s = s + vard.Name + lineend
NEXT
messagebox('s',s)
end if