Using the ML Logic Verb

The ML logic verb enables you to add text that is defined in code to the Lexicon.

  1. Open the Logic Editor.

  2. Locate the displayable text in code and add the ML logic verb in the appropriate place. You can type the parameters directly using the syntax detailed below. You can also display the Translations Settings window by pressing F4 on or after the string in the brackets.

Note: You can copy and paste the ML syntax. Also note that setting up the details in the Translation Settings window returns the results to the logic line.

 

 

Purpose

ML is used to add displayable text defined in logic to the Lexicon.
 

Syntax

variable = ML(String{,TranslationMode{,MaxLen,{MeaningCode}}})
 

Operation

String is the displayable text which requires translation.
TranslationMode
 sets the rule
if the translated text exceeds the maximum length. Either 'D'-Use Translation, 'T'-Truncate to Fit, or 'B'-Don't Translate.
MaxLen
is the maximum length of the translated text.
MeaningCode
can be used if the string has multiple meanings. 

Remarks
 

 

Example
 

$InvNo = ML('Invoice Number','D',10) 

Adds 'Invoice Number' to the Lexicon. If the translated text exceeds the maximum length of 10, then the translation on the screen is truncated (with an ellipsis to show this), and the full string displays in a tool tip. Note that the parameters after the string are optional.

Comment on this topic

Topic ID: 480011