GXGetMLi function

Official Content
This documentation is valid for:

Considers a constant as the number of characters per line and the current line. It returns the next line of characters.

Syntax

GXGetMLi(character, line , constant)
 
Where:

Character
Specifies a long varchar, varchar or char field.

Lline
Line number.

Constant
Specifies the number of characters per line.

Type Returned:
Character(Constant)

Scope

Objects: Procedure, Transaction, Web PanelData Provider
Generators: .NET.NET FrameworkJava, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

Considering constant as the number of characters per line, it is able to return the next line of the character field.

Notes:

  • The font used to display the fields must be non-proportional.
  • In order to use these functions, the Knowledge Base “Functions” Property must be set with the value “Allows non-standard functions on saving”.

Samples

The following example shows how to print  the attribute attchar splited in lines of 40 characters each.
 

  &nlin = GXMLines(attchar,40)
  &i = 1
  Do While &i <= &nlin
     &txt = GXGetMLi(attchar,&i,40)
     Print txtLines // (print block that prints &txt)
     &i += 1
  EndDo

See Also

Functions that Manage LongVarchar Fields
Knowledge Base Preferences
GXMLines function