Wow. You like complex, multi-level questions.
The first problem is accessing a value that does not execute as you described. Essentially, you use Describe () to get the value. The only problem is that it returns as a string in the following format with quotes (note that we use the standard PowerScript notation, where ~ t is the tab)
"<DefaultValue>~t<Expression>"
You need an expression, so you have to parse it, as well as quotation marks.
, . Describe(), :
Describe ("Evaluate('<expression>', <rownum>)")
, , GetRow().
, PowerScript , , , - ( b):
if (Describe ("Evaluate (~"" + Mid (Describe ("b.protect"),
Pos (Describe ("b.protect"), "~t")+1,
Len (Describe ("b.protect")) - Pos (Describe ("b.protect"), "~t") - 1)
+ "~", " + String (GetRow()) + ")")='1',
rgb(128, 128, 128),
rgb(255,255,255))
, Mid() , , , Protect Describe (Evaluate()) .
. , Protect, Evaluate() . Protect, Protect (~ "), , , . , ( , , ), (" column.protect") GetRow() PowerScript, .
,
.