Xbase++ : GethWnd()
Posted: Sat Oct 26, 2019 2:24 am
hi,
i have Problem with o:GetHwnd() ...
i found __objGetMethodList(Object) and use this Code
in Line 85 i search for "GETHWND" and found it.
in Line 89 i test it with __objhasmethod() again and it is .T.
now it crash in Line 90 ... WHY
do i access GETHWND() in wrong Way (Syntax)
need help please
i have Problem with o:GetHwnd() ...
i found __objGetMethodList(Object) and use this Code
Code: Select all
82│ oDlg:Show()
83│
84│ xValue := __objGetMethodList(oDlg)
85│ lRet := ASCAN(xValue, {|o| o = "GETHWND"} ) > 0
86│ Msgbox(var2char(xValue),IF(lRet,"Yes","No"))
87│
88│ IF lRet
89│ IF __objhasmethod(oDlg, "GETHWND" )
90│ nHwnd := oDlg:GETHWND()
91│ ENDIF
92│ Msgbox(var2char(nHwnd))
93│ ENDIF
now it crash in Line 90 ... WHY
need help please