cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove blank characters at the beginning of a string

Former Member
0 Kudos

Hello,

If there are blank characters (one or more) start at the beginning of a string how we can remove them.

Thanks for any help.

-Jean

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Jean,

Try:

Ltrim({database field})

-Abhilash

Former Member
0 Kudos

Hi Abhilash,

Works great. Thanks for you help.

-Jean

Answers (1)

Answers (1)

DellSC
Active Contributor
0 Kudos

Create and use a formula that looks like this:

LTrim({MyTable.MyField}

If you're just joining tables in your report, not using a command, universe, or stored proc for the data, you could use a SQL Expression instead.  This would be in the syntax of your database. So, for example, if you're connecting to SQL Server it would be this:

LTRIM("MyTable"."MyField")

If you're using Oracle, it would be this:

TRIM(LEADING ' ' FROM "MyTable.MyField")

-Dell

Former Member
0 Kudos

Thanks Dell for your help.