Futurebasic/Language/Reference/mkistr

Description
("MaKe Integer string") returns a string which has the same internal bit pattern as ; each character in the returned string will represent 8 bits from. The returned string will have a length of 1, 2 or 4 characters, depending on which of,   or   is currently in effect. If  is in effect, you should make sure that   is within the range of numbers that can be expressed in a single byte; similarly, if   is in effect, you should make sure that   is within the range of numbers that can be expressed in a "word"-length (2-byte) integer.

is useful for translating the 4-letter file types, creator codes, resource types, etc. that are frequently used in MacOS Toolbox routines. These codes are typically transmitted in the form of long-integer values; by using the  function you can translate these long integers into strings for display purposes (be sure to set   before doing this).

If  is in effect,   returns the same thing as the   function.

Note: When  is in effect and 4-character strings and long-integers are being converted,   is essentially the inverse of the   function. Note, however, that the behavior of does not depend on the current setting of.