MDP@su-score.arpa (05/11/83)
From: Mike Peeler <MDP@su-score.arpa> I have used Encode and Decode. They take the forms: FUNCTION ENCODE (VAR dest: LSTRING; source:field:radix): BOOLEAN; FUNCTION DECODE (CONST source: STRING; VAR dest): BOOLEAN; This means you have to code it something like IF NOT ENCODE (dest_string, int_val::16) THEN <handle error> For what you want, I believe you will have to write your own decoder. The manual says that DECODE "works exactly the same as the READ procedure, including the use of M and N parameters," and that "M and N values in READ are ignored." The fact that "non-decimal notation (16#C007, 8#74, 10#19, 2#101, #Face) is accepted" indicates that the base will be determined by the input, not by your program. -------