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

Table of Contents

Overview

Applies required format to value to create usable Code 39 Barcode.

Parameters

SpecName (constant) The variable containing the input to be converted. Proper Code39 font must be applied in the template.

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

Synopsis

This method follows the specifications of the base Code 39 barcode. Essentially the method applies the proper start and stop characters. The method does not ensure invalid characters are included in the barcode input.

Source Code

public static void Code39(string SpecName, object ErrorMessage)
{
	Break();
	try
	{
		Variable(SpecName).Value = String.Format("*{0}*", Variable(SpecName).Value.Replace(" ", "_"));
	}
	catch (Exception ex)
	{
		throw new Four51ActionsException(ex.Message, (string)ErrorMessage);
	}
}

Referenced Methods

Clone this wiki locally