lcAlias=juststem(.controlsource) >if lcalias#.controlsource and used(lcAlias) > * we have a table >else > * not a table - check whether it's a property, variable etc >endifThanks, Dragan. I found that in CreateTag method that used the original Vlad G code I have code like that checking for the expression already. In the SetOrder method I just added check for used() for now.