Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox question
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01037824
Message ID:
01039517
Views:
28
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.'
Previous
Reply
Map
View

Click here to load this message in the networking platform