Hi.
I have a tree being xbrowsed that needs to be totally replaced at run time. I figured I could simply reassign the otree property of the xbrowse and then refresh but this is not working. Any ideas?
Thank you.
Reinaldo.
I have a tree being xbrowsed that needs to be totally replaced at run time. I figured I could simply reassign the otree property of the xbrowse and then refresh but this is not working. Any ideas?
//------------------------------------------------------------------------------
METHOD ToggleFilter() CLASS TIcd10Browser
LOCAL cFilter := ::cFilter
LOCAL nCurrRec := ::oDbf:RecNo()
IF ::isFilterON
IF !EMPTY( ::cFilterExpression )
//sanitize the filter expression first.
::cFilterExpression := STRTRAN( ::cFilterExpression, "'", "" )
cFilter := ::cFilter + " .AND. CONTAINS( *, '" + ALLTRIM( ::cFilterExpression ) + "' )"
::ReBuildChaptersTree() //creates a new ::oTree
::oBrw:oTree := ::oTree
::oBrw:Refresh()
ENDIF
ENDIF
…
RETURN .T.Thank you.
Reinaldo.