Page 1 of 1

Xbase++ : GethWnd()

Posted: Sat Oct 26, 2019 2:24 am
by AUGE_OHR
hi,

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
in Line 85 i search for "GETHWND" and found it.
GetHHwnd.jpg
GetHHwnd.jpg (112.51 KiB) Viewed 1863 times
in Line 89 i test it with __objhasmethod() again and it is .T.

now it crash in Line 90 ... WHY :shock:
Error_GetHHwnd.jpg
Error_GetHHwnd.jpg (22.8 KiB) Viewed 1863 times
do i access GETHWND() in wrong Way (Syntax) :?:
need help please