Well you do not state what version of KiXtart you are using, but looking at the 4.22 manual yields:

Code:
LTrim( )

Action: Strips leading spaces from an input string and returns the result.

Syntax: LTRIM ("string")

Parameters: String
The string from which to strip leading spaces.

Returns: The input string without leading spaces.

See Also: RTrim( ), Trim( )

Example: $x = LTRIM(SUBSTR(@IPADDRESS0, 1, 3))




If you want more control to match and extract the value you should look at using Regular Expressions. Checkout this link: RFC: Regular Expression UDFs

Let me know if you have any further questions.
_________________________
Home page: http://www.kixhelp.com/hb/