>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)