| Ken Mayer [dBVIPS] 2006-10-31, 12:18 am |
| Incoronata Pircio wrote:
> I have a form with a grid. One of the column is a calculated field an I donīt want user be able to change the calculated value. I even would rather user could not have access tho than column at all. Just as works an entryfield with the property enable
d set to false. How can I do this?
They shouldn't be able to change the value in the first place, because
by definition a calculated field is read-only. Is this a field created
with the dBASE Field Object, or an actual field in your table?
If it is a field in your table, then this is easier done by going to the
Query object using the Inspector, find the rowset object, and click the
"I" button, find the fields object, click the "I" button, find the field
you want to be read-only, click the "I" button (this is called "drilling
down"), and find the readOnly property. Set this to true.
Now when you run the form, the user cannot change the field.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
|