-
Notifications
You must be signed in to change notification settings - Fork 1
LowerCase
jdubs edited this page Oct 21, 2016
·
1 revision
Converts all characters to lower case.
SpecName (constant) The variable containing the text to format.
ErrorMessage (multiple | optional) The error message to return when any error occurs.
This method simply converts all alpha characters to lower case.
public static void LowerCase(string SpecName, object ErrorMessage)
{
Break();
try
{
Variable(SpecName).Value = Variable(SpecName).Value.ToLower();
}
catch (Exception ex)
{
throw new Four51ActionsException(String.Format("{0}{1}", ex.Message, (string)ErrorMessage != String.Empty ? Environment.NewLine + (string)ErrorMessage : String.Empty));
}
}