Skip to content
jdubs edited this page Oct 21, 2016 · 1 revision

Table of 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);
	}
}

Referenced Methods

Clone this wiki locally