Hello Sergay,
Thank you for the reply. I had previously tried what you said but without success.
However, as I was playing with the grid I stumbled across the solution. The date column in the cursor is 11 bytes which is the maximum for my date value. My code used ALLTRIM() to remove unrequired spaces from the date but when I setup the date value as follows-
cDate = RIGHT(SPACE(11) + ALLTRIM(cDate),11)
it worked. It seems that VFP calculates the right alignment based on the data in the field which means any text you want right aligned in the grid column has to be right aligned in the cursor. Weird, eh?
Thanks again for you interest in this issue. I feel good that I solved the mystery myself.
Regards...Rex
Rex Toomey
ISD Port Macquarie NSW
Australia
'Inside every older person is a younger person wondering what happened.'