-
Notifications
You must be signed in to change notification settings - Fork 1
Suffix
jdubs edited this page Oct 21, 2016
·
1 revision
Appends text to the value in the supplied variable.
SpecName (constant) The variable containing the text to append the suffix.
Suffix (multiple) The value to prepend to the variable.
ErrorMessage (multiple | optional) The error message to return when any error occurs.
This method simply applies a suffix to the variable specified. For example, a suffix of ", Inc." applied to a value of "Four51" results in "Four51, Inc.".
public static void Suffix(string SpecName, object Suffix, object ErrorMessage)
{
Break();
try
{
Variable(SpecName).Value = String.Format("{0}{1}", Variable(SpecName).Value, Suffix);
}
catch (Exception ex)
{
throw new Four51ActionsException(ex.Message, (string)ErrorMessage);
}
}