From: utzoo!decvax!decwrl!sun!megatest!fortune!hpda!hplabs!sri-unix!MDP@su-score.arpa Newsgroups: net.micro Title: Re: Help with IBM (Microsoft) Pascal Article-I.D.: sri-arpa.1368 Posted: Wed May 11 04:41:02 1983 Received: Tue May 17 01:11:34 1983 From: Mike Peeler 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 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. -------