Subject Re: GRID
From Mervyn Bick <invalid@invalid.invalid>
Date Tue, 14 Mar 2017 11:29:35 +0200
Newsgroups dbase.getting-started

On 2017-03-13 10:37 PM, Bruce Beacham wrote:
> On 11/03/2017 06:19, Mervyn Bick wrote:
>> You can add a calculated field to the table when you open the query and
>> the grid will be able to display that if you add a column but calculated
>> fields are read-only so you can't use it to show if a record has been
>> selected from the keyboard.
> Not strictly true.   You can use an assocarray to drive a calc field
> shown in a grid, so that the field's canChange sets the assocarray
> element to true, and the beforegetvalue reads that element and displays it.
> The assocarray key might be an autoinc field.

I've spent some time on this but I'm obviously missing something as I
can't get this to work.  A snippet of code to point me in the right
direction would be appreciated.