Have you thought about using a fixed width font?
>Hello All,
>
>I would like to know if there is a better way than my existing code to right align one column in a listbox containing 7 columns:
>
>
>.aEventData[nEventCount,4] = SPACE((15 - TXTWIDTH(cData,'Arial',8)) / .6) + cData
>
>
>The results from the above line of code gives a reasonable result but often times the right alignment can be a bit crooked.
>
>I know that a Grid would also do this with its listbox-like properties however, the listbox is easier to manage for this particular exercise.
>
>Any thoughts or suggestions would be most gratefully received.
>
>Rex