Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULLDISPLAY property in grid
Message
 
 
To
28/12/2005 10:39:38
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01080755
Message ID:
01081278
Views:
9
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform