Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox question
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01037824
Message ID:
01039517
Vues:
27
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.'
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform