TrimStart

jdubs edited this page Oct 21, 2016 · 1 revision

Table of Contents

Overview

Trims specified characters from the beginning of a variable value

Parameters

SpecName (multiple) The name of the variable for operation result assignment

Characters (multiple) The variable containing the number of total characters

ErrorMessage (multiple | optional) The error message to return when any error occurs.

Synopsis

The Characters parameter can be a grouping of characters. It is not limited to just one. For example: If you specify to trim "01" from the value "0023423423111" the result will be "23423423111".

Source Code

public static void TrimStart(string SpecName, object Characters, object ErrorMessage)
{
	Break();
	try
	{
		var text = Variable(SpecName).Value;
		Variable(SpecName).Value = text.TrimStart(((string)Characters).ToCharArray());
	}
	catch (Exception ex)
	{
		throw new Four51ActionsException(ex.Message, (string)ErrorMessage);
	}
}

Referenced Methods

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.