Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Problem
Message
De
05/03/2002 10:53:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/03/2002 10:49:23
Bill Emery
MedScribe Information Systems
Sylvania, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00628445
Message ID:
00628448
Vues:
15
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform