Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Olecontrol (from DBI)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01154001
Message ID:
01154009
Vues:
14
>Hi All,
>
>Haven't found any documentation on this but the api is intuitive enough.
>
>I am using the activeX control (olecontrol) from dbi to display data in a grid. Trouble is geting to sort date columns correctly as dates not as char strings.
>
>control.lvAddItem(Str(date - CTOD("01/01/1900")) followed by setting control.lvColumnDataType(column) = 3 does the job. BUT...
>
>It displays the date in the date:time format. Any ideas how to turn off the time part? The user is not interested in seeing that part, only want to see the date.
>
>Thank you
>
>Regards
>
>Mathias

Hi Mathias,
set ControlSource on column to [TTOD(datetimefield)]
ThisForm.Grid1.Column2.ControlSource = [TTOD(datetimefield)]
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform