Returns the number of lines occupied by a field, considering a numeric value.
GXMLines(Character , Constant)
Specifies a long varchar, varchar or char field.
Specifies a numeric constant.
Objects: Procedure, Transaction, Web Panel, Data Provider
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)
Considering constant as the number of characters per line, it returns the number of lines occupied by the character field.
- 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”.
The following example shows how to print the attribute attchar splited in lines of 40 characters each.
&nlin = GXMLines(attchar,40)
For &i = 1 to &nlin
&txt = GXGetMLi(attchar,&i,40)
Print txtLines // (print block that prints &txt)
Knowledge Base Preferences
Functions that Manage LongVarchar Fields