Official Content

Returns a specified character expression with all leading blanks removed.

Syntax

String.TrimStart( )

Where:

String
   Is the character expression from which you want to trim all leading blanks.

Type Returned:
Character

Scope

Data Types: Character, VarChar, LongVarChar
Generators:  .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), RPG, Visual FoxPro (up to GeneXus X Evolution 3)

Description

This method returns the character string that results from removing the leading blanks from a character expression String.

Note: In Cobol for iSeries this function is ignored, because the string's length is fixed.

Samples

&Text = &Var.TrimStart()
// &Var = "    My character expression" 
// Result of &Text: “My character expression”

See Also

Trim function
LTrim function
Trim method






Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant