Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying calculated value in textbox in Grid
Message
From
03/11/2000 08:42:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Displaying calculated value in textbox in Grid
Miscellaneous
Thread ID:
00437556
Message ID:
00437556
Views:
77
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
Map
View

Click here to load this message in the networking platform