[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== How to find out if a cell in an edittable is protected (OpenInsight Specific) ==== === At 23 JUN 1999 06:09:27PM Greg James, ISIS, Inc. wrote: === {{tag>"OpenInsight Specific"}} I read numerous posts that discuss the use of Send_Message COLSTYLE to set an edittable cell to protected, but is there a way to use Get_Property (or equivalent) to determine if the SELPOS cell IS protected? Thanks ---- === At 24 JUN 1999 01:46AM Don Bakke wrote: === Greg, If you look at the sample code for the STYLE property in the Programmer's Reference Guide you'll see an example on how to test for a style setting using the BitAnd operator. dbakke@srpcs.com [url=http://www.srpcs.com]SRP Computer Solutions[/url] [img]http://www.srpcs.com/srpicon1.gif[/img] ---- === At 24 JUN 1999 12:01PM Greg James, ISIS, Inc. wrote: === Don, I looked at the STYLE property as you suggested, but I am still not clear on its application. I have an edit table with 5 columns. The first two columns are not protected, but the last three are. I am trying to develop a routine to allow users to delete (via a hot-key, e.g., Shift-F4) the contents of the SELPOS cell in an edittable. I want my code to first, find out where the SELPOS is in the edit table, check to see if the cell is protected or not, and then delete or not delete the cell contents accordingly. From the description of the STYLE property in the Programmer's Reference Manual, it doesn't appear that the STYLE property can return this information. Any advice on how I should proceed? Thanks. ---- === At 24 JUN 1999 12:21PM Greg James, ISIS, Inc. wrote: === I understand how to find out if an edit line is enabled/disabled, but how can I find out if the edit line in read-only or not? ---- === At 24 JUN 1999 04:04PM Don Bakke wrote: === Greg, You get the COLSTYLE for the column in question, then plug that value into the sample code I was referring you to. dbakke@srpcs.com [url=http://www.srpcs.com]SRP Computer Solutions[/url] [img]http://www.srpcs.com/srpicon1.gif[/img] ---- === At 24 JUN 1999 04:12PM Don Bakke wrote: === Greg, Use the same method I suggested for the protected cell, only use the appropriate style for ES_READONLY which appears to be 2048. dbakke@srpcs.com [url=http://www.srpcs.com]SRP Computer Solutions[/url] [img]http://www.srpcs.com/srpicon1.gif[/img] [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=E9C9D123C0590B02852567990079B6FE|View this thread on the forum...]]