FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Xbrowse tree
Posts: 401
Joined: Thu Oct 06, 2005 10:15 PM
Xbrowse tree
Posted: Fri Dec 30, 2011 12:55 PM

Saludos,

Estoy en un xBrowse con un tree, y estoy en un segundo nivel,
pero deseo obtener el cprompt del primer nivel ???

Saludos,



Pablo Alberto Vidal

/*

------------------------------------------------------

Harbour 3.2.0, Fivewin 17.02, BCC7

------------------------------------------------------

*/
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Xbrowse tree
Posted: Sat Dec 31, 2011 05:04 AM
Try this

Code (fw): Select all Collapse
oItem:=oBrw:oTreeItem
While oItem != NIL .and. oItem:nLevel > 1  // Up to your preferred level
      oItem:=oItem:oPrev
End
MsgInfo(oItem:cPrompt)


Regards
Anser
Posts: 401
Joined: Thu Oct 06, 2005 10:15 PM
Re: Xbrowse tree
Posted: Sat Dec 31, 2011 11:55 AM

Perfect,

Thanks anserkk

Happy New Year from Dominican Republic. :)

Saludos,



Pablo Alberto Vidal

/*

------------------------------------------------------

Harbour 3.2.0, Fivewin 17.02, BCC7

------------------------------------------------------

*/
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Xbrowse tree
Posted: Sat Dec 31, 2011 11:57 AM
Good to know that it helped you. :-)

Wish you too a very Happy and Prosperous New Year from India :-)

Regards
Anser

Continue the discussion