Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date column in the grid with SET CENTURY ON
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00993628
Message ID:
00994727
Vues:
17
>Try this:
>
>** Add a property pnRecord to your form and initilize it with 0
>myform.mygrid.column1.Sparse=.f.
>myform.mygrid.column1.text1.Century = 0
>myform.mygrid.column1.text1.BackStyle = 0
>myform.mygrid.column1.DynamicBackColor="=iif(recno(this.RecordSource)=thisform.pnRecord,this.HighlightBackColor,this.BackColor)"
>
>** AfterRowColChange event
>thisform.pnRecord=recno(this.RecordSource)
>IF m.nColIndex = 1 ; && 1 is the column1
>THEN
>  this.column1.text1.BackStyle = 1
>ELSE
>  this.column1.text1.BackStyle = 0
>ENDIF
>this.refresh()
>
Thanks a lot, I'll try. Too bad I can not use built-in mechanism.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform