method CalcEdit.InsertLockedText (Text as String, [Index as Variant])
Inserts locked text to the control.

TypeDescription
Text as String A string expression being inserted.
Index as Variant A long expression that defines the index of line where the text follows to be inserted. If missing or negative, the text is added at the end of the control's text
Use the InsertLockedText method inserts locked text/lines to control. A locked line / text can not be removed or deleted at runtime. For instance, you can add a total line, that user can not edit or remove it. Use the InsertText method inserts text/lines to control. By default, the MultiLine property is False, which indicates that the control can display a single line only. Use the Text property to specify the control's text. The control's text is evaluated using arithmetic operators. Use the Result property to get the result, if the expression is valid. Use the IsValid property to specify whether the Text property is syntactically correct, and may be evaluated. The result is displayed as the user types the expression. The control fires the Change event when the user alters the expression. The BackColorLockedLine property specifies the foreground color for locked lines. The ForeColorLockedLine property specifies the foreground color for locked lines.