Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox question
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Listbox question
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01037824
Message ID:
01037824
Views:
83
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
Rex Toomey
ISD Port Macquarie NSW
Australia

'Inside every older person is a younger person wondering what happened.'
Next
Reply
Map
View

Click here to load this message in the networking platform