Home > Archive > Getting Started with dBASE > October 2006 > Block a column in a grid









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Block a column in a grid
Incoronata Pircio

2006-10-31, 12:18 am

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 enabled
set to false. How can I do this?
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
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com