Thanks Borislav. This seems to be a simpler way to go about. I 'll just check all the places where there is a refresh and I will try to make the minimum call changes.
Thanks for responding.
>Hi Bhavbhuti,
>
>If I understand you corectly I want to avoid recursion call of SyncTreeView method from Refresh method of a form.
>
>The first thing that came to my mind is to put à parameter in Reresh metod of a form:
>
>PROCEDURE Refresh
> LPARAMETER not_recurse && The default falue is .F. (i.e. when this method is called w/o parameter not_recurse == .f.
>...
>
> IF NOT not_recurce
> thisform.TreeView.SyncTreeView
> ENDIF
>ENDPROC
>
>PROCEDURE SyncTreeView
> ...
>
> thisformRefresh(.t.)
>ENDPROC