Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Problem
Message
From
05/03/2002 10:53:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/03/2002 10:49:23
Bill Emery
MedScribe Information Systems
Sylvania, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00628445
Message ID:
00628448
Views:
16
>I’m using VFP 6 SP 5 on Windows ME. My problem is that I need a grid on my form, and the grid must display a date from a data table and the corresponding day of the week from cdow() along with a host of other items. I used the VFP builder wizard to build the grid, thinking to add another column with the day of the week in it. Everything works just fine except for the day of the week, which I can’t seem to understand. I’ve tried setting the value of a textbox control to display the day, as well as the caption of a label control. Could someone please point me in the right direction here? Thanks!

Perhaps your trouble stems from the fact that cdow() returns a variable-length string.

Try something like padr(cdow(MyDate), 10)

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform