Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-FileTYPE(x) x: iexp With the function TYPE() the type of a variable can be determined. The function operates on the pointer to the variable, and returns a value corresponding to the variable type as follows: Float 0 String 1 Long 2 Boolean 3 Float array 4 String array 5 Long array 6 Boolean array 7 Word 8 Byte 9 Word array 12 Byte array 13 Note: An invalid pointer returns the value -1. Example: a$="test" x%=4 DIM y(3) PRINT TYPE(*a$),TYPE(*x%),TYPE(*y()) --> The numbers 1, 2, and 4 appear on the screen. (*a$, etc, represent the pointer to a variable.)