-
Notifications
You must be signed in to change notification settings - Fork 1
Code39
jdubs edited this page Oct 21, 2016
·
1 revision
Applies required format to value to create usable Code 39 Barcode.
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.
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.
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);
}
}