Suffix
From WikiFour51
Contents |
Overview
Appends text to the value in the supplied variable.
Parameters
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.
Synopsis
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.".
Source Code
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); } }

