Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i show date names on grid headers ?
Message
From
17/02/2003 09:06:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00754053
Message ID:
00754056
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform