DIAdem Help

Working with Text in the Calculator

  • Updated2024-09-12
  • 1 minute(s) read

Working with Text in the Calculator

Use the Calculator to run operations on text. For example, to assign text to variables, determine the length of a text, read text from ASCII files, or delete parts of a text. To assign a text to a variable in the Calculator dialog box, complete the following steps:

  1. Select the DIAdem ANALYSIS panel.

  2. Click the Calculator.

  3. Enter an assignment in the Formula entry field, for example:

T1 = "text"

If a text already includes quotation marks, enclose the entire text in single quotation marks and replace the quotation marks with two quotation marks, for example:

T1 = "text with ""quotation marks"""

Note  Always enclose text in quotation marks.
  1. Click Calculate.