DdsDataField.Protect Property

Gets or sets the RPG indicator expression that, when evaluated, determines if the field is output-only (read-only).

Syntax

BegProp Protect Access(*Public) Type(*String)
   BegGet;  BegSet

Property Values

String containing the RPG indicator expression that, when evaluated, determines if the field is output-only (read-only).

Remarks

Setting this property has no affect for Hidden fields. ( DspAtr(PR))

To set this property at design-time, click on the right hand side of the property window and enter the conditional indicators for the control.

Special case insensitive string values may be used to set the condition to either TRUE or FALSE. "*True" means to make the control read-only. "*False" means the control is not read-only.

Examples:

ControlName.Protect = "(46 & !47)"
ControlName.Protect = "!(13 | !15)"
ControlName.Protect = "*true"
ControlName.Protect = *false"

Requirements

Namespace: ASNA.Monarch.WebDspF

Assembly: ASNA.Monarch.WebDspF.DLL

Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro