int dimInt = SysDimension + 1; ........... while select custTrans where custTrans.Dimension[dimInt]='something'