Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i show date names on grid headers ?
Message
De
17/02/2003 09:06:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00754053
Message ID:
00754056
Vues:
19
>how can i show date names in grid headers ?
>for eg i have a table named january when i add this table to DE on the form and setup recordsource of grid . headers should change at runtime like under ( when i run the form)
>How can i do this ?
>
>Monday 17.02.2003|Tuesday 18.02.2003|Wednesday 19.02.2003
>
>PS: | is separator of grid headers
>
>TIA
with thisform.myGrid
 for each oColumn in .Columns
   eExpression = ...
   oColumn.Header1.Caption = eExpression
 endfor
endwith
eExpression is some expression that would give the string you want. ie:
if your fieldnames are like _20030201, _20030202 :
  lddate = ctod(transform(;
       substr(justext(.controlsource),2),'@r ^9999/99/99'))
  oColumn.Header1.Caption = cdow(lddate)+' '+dtoc(lddate)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform