General information
Category:
Coding, syntax & commands
Thanks David
I think you have hit the nail on the head:)
I will investigate this.
BTW do you have any idea why the _screen part of
_screen.Activeform.Itemgrid.Unitcolumn.Unit.readonly
should vanish when in the breakpoint dialog of the windows debug frame but not when in the Foxpro watch/breakpoint frame
>Mark,
>
>What is the RecordSource of the grid? If it's a cursor and you are reissuing the SELECT to generate it then you are causing the grid to self destruct and rebuild itself, when it rebuilds it uses baseclass controls and default settings for everything.
>
>The best way around this is to use a View. You can also temporarily empty the RecordSource, do the SELECT and then reset the RecordSource
>
>>I have grid that contains a column value that is supposed to be readonly.
>>
>>I have tried to set a breakpoint to tell me when this value changes erroneously to .f.
>>
>>I can access the column in the watch window as follows.
>>
>>_screen.Activeform.Itemgrid.Unitcolumn.Unit.readonly
>>
>>However when I try to set a break point using this , the breakpoint dialog strips off the _screen part so the expression is not evaluated.
>>
>>Can anybody tell me a way of doing this.
>>
>>I have tried setting asserts at various points in my code to trap this elusive event but to no avail.
>>
>>I realise that I can step through the code a line at a time whilst checking the watch window but this will be a long process
Previous
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