Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NULLDISPLAY property in grid
Message
 
 
À
28/12/2005 10:39:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01080755
Message ID:
01081278
Vues:
8
>>>It works if you set Sparse=.F.
>>I tried it, it worked, but then the current record highlighting got crazy (as Fabio would say <g>), so I decided to leave it with Sparse = .t. We have NULLDISPLAY set to empty string, so it looks quite nice anyway.
>
>For a dynamic Nulldisplay, you can use this:
>
>Sparse = .T.
>Bound  = .F.
>Column.controlsource = "NVL(fieldNullable,eNullDisplay)"
>TextBox.controlsource = "fieldNullable"
>
>* TextBox.GotFocues
>this.NullDisplay = EVAL(eNullDisplay)
>
>
>But a VFPT's bug design, set the textbox to ReadOnly ( VFP doesn't uses Bound = .T. as condition )
>
>As workaround you can:
>
>* textBox.Keypress
>this.ReadOnly = .T.
>
Sounds too complicated. I think I leave everything as it is right now. In our application we use nulldisplay as empty string. I wanted to use N/A instead of it, but it would not look nice in the grid when the whole column would be N/A, so I better would live with our defaults.
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