Access Field Names Preceded By ‘$’ With LS

You have LotusScript code that runs against a particular document. The document contains several fields that have names preceded by a $ symbol. When you attempt to reference these fields in the code via extended-class syntax, an error occurs. Is it possible to access these fields in LotusScript using extended-class syntax?

To access these fields in LotusScript using extended-class syntax, you must insert a tilde character (~) immediately before the $ sign.

For example, while the following line generates an error:

variablename = doc.$AdditionalHeaders(0)

The modified line runs as intended:

variablename = doc.~$AdditionalHeaders(0)

[via Lotus Notes KnowledgeBase #1098756]