Access Field Names Preceded By ‘$’ With LS

August 8, 2007 – 7:38 am

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:

1
variablename = doc.$AdditionalHeaders(0)

The modified line runs as intended:

1
variablename = doc.~$AdditionalHeaders(0)

[via Lotus Notes KnowledgeBase #1098756]

Related posts:

  1. Access Resource Bundle in XPages from JAVA
  2. Using and understanding Reader Names fields in IBM Lotus Notes and Domino
  3. Lotus Notes Access for SAP
  4. Code Disaster
  5. Pad A Number Field With An Exact Number Of Leading Zeros

Sorry, comments for this entry are closed at this time.