General information
Category:
Forms & Form designer
Title:
Displaying calculated value in textbox in Grid
Logical field in table. Don't want T or F (or Y or N) to appear in grid. Want it to say 'NOTLINKED' if true and 'Linked' if false.
I have removed the controlsource from the column because that forced it to display T/F regardless
in the textbox refresh method, I have
if nolink
this.value='NOTLINKED'
this.fontbold=.t.
else
this.value='Linked'
this.fontbold=.f.
endif
and in the value property I have
iif(nolink,'NOTLINKED','Linked')
none of which affects the resulting display one iota. What in fact appears is the value of an entirely unrelated field!
In the click method of the Header, I have code which allows users to toggle the value of the field from true to false or vice versa. It then displays the correct value (which proves that it can!). But if we leave the grid and then re-enter it, the display is back to unrelated text.
Anyone point me in the right direction?
Thanks
Harry
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only