IF LEN(ALLTRIM(field1))<30 field1.alignment=center && center justify else field1.alignment=right && right justify endif