FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour c:\fwh\samples\testtre2.prg Error
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
c:\fwh\samples\testtre2.prg Error
Posted: Mon Nov 30, 2009 01:48 PM
Hi,
I compile testtre2
I run it
I click here

I've got this error
Application
===========
Path and name: C:\FWH\samples\testtre2.exe (32 bits)
Size: 1,916,416 bytes
Time from start: 0 hours 0 mins 1 secs
Error occurred at: 11/30/09, 14:46:14
Error description: Error BASE/1004 Class: 'NIL' has no exported method: CPROMPT
Args:
[ 1] = U

Stack Calls
===========
Called from: => CPROMPT(0)
Called from: .\source\classes\TTREEVIE.PRG => TTREEVIEW:HANDLEEVENT(282)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(966)
Called from: testtre2.prg => MAIN(91)

FWH version is
October 2009
=============


Thanks
marco
Marco Boschi
info@marcoboschi.it
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: c:\fwh\samples\testtre2.prg Error
Posted: Mon Nov 30, 2009 02:54 PM
With this remark at line 282 of ttreevie.prg now program works fine

In my opinion is important to understand the reason why this happens.

However despite this problem now I can continue my work
Thanks for your attention


METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TTreeView

local oItem

if nMsg == 514
oItem = ::GetItem( nLParam )
// MsgInfo( oItem:cPrompt ) // row 282 of ttreeview.prg
endif

do case
case nMsg == WM_CHAR
if nWParam == VK_RETURN
return 1
endif
endcase

return Super:HandleEvent( nMsg, nWParam, nLParam )
Marco Boschi
info@marcoboschi.it
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: c:\fwh\samples\testtre2.prg Error
Posted: Mon Nov 30, 2009 05:00 PM

Marco,

That code was left there in FWH 9.10 by mistake. In FWH 9.11 we fixed it :-)

Thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: c:\fwh\samples\testtre2.prg Error
Posted: Tue Dec 01, 2009 11:03 AM

Ok Antonio
Thanks!

Marco Boschi
info@marcoboschi.it

Continue the discussion