Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Intermec Online Guide - <b>convert (c)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CONVERT (C)

Purpose: Convert string data to numeric data or numeric data to string data.

Format:  Cn1 = n2

Remarks: C         Convert

         Convert Type:

                 Numeric . String
                   n1 numeric register
                   n2 file record, string register, string data

                 String . Numeric
                   n1 File record, string register
                   n2 Numeric register, length([]), numeric data


         Convert Type:       Remarks:

         Numeric . String    Takes first 7 character of string data and puts
                             in numeric register.  All non-numbers are set
                             to 0.

         String . Numeric    Takes digits from numeric register (no leading
                             0's), puts in file/record or string register.


                   Number                      
                   in #0:              Meaning:

                   0                   Good convert
                   1                   More than 7 digits
                   2                   Non-numeric characters
                   3                   Convers statuses 1 and 2

Examples:

                   If:                 Then:

                   #1 = 12345          CA(1) = #1 puts 12345 into A(1)

                   A(1) = 345678       C#1 = A(1) puts 345678 into #1

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson