Xbase++ : GethWnd()

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Xbase++ : GethWnd()

Post 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 1862 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 1862 times
do i access GETHWND() in wrong Way (Syntax) :?:
need help please
have fun
Jimmy
Post Reply