Numeric to Alphanumeric Conversions
Applies to Windows only.
The Framework manager provides a method for converting numeric values to alphanumeric form.
For example:
Invoke #AvFrameworkManager.avMakeAlpha fromNumeric(#ProdNo) Into(#ProdNoC) Length(5)
Invoke #avListManager.AddtoList VisualID1(#ProdNoC) VisualID2(#ProdDesc) NKey1(#ProdNo)
will convert the numeric field #ProdNo to alphanumeric format in #ProdNoC (with 5 digits presented). #ProdNoC is then used as the alphanumeric visual identifier for an entry in the instance list.
Method avMakeAlphaValue supports output in various formats that are biased to the conversion of non-decimal identification data (eg: Product Numbers, Customer Numbers, etc) such as these examples:
FromNumericValue() Input Value | Output when Length() NOT specified | Output when Length(3) specified | Output when Length(7) specified | Output when Length(15) specified |
1 |
1 |
001 |
0000001 |
000000000000001 |
345.678 |
345.678 |
345 |
0000345 |
000000000000345 |
123456789 |
123456789 |
789 |
3456789 |
000000123456789 |
67- |
67- |
067- |
0000067- |
000000000000067- |
See Visual Identifiers.