Xbasic
ArrayType Function
Syntax
DataType as C = ArrayType(* array )
Arguments
- DataType
result
- "C" = array contains character values
- "N" = array contains numeric values
- "D" = array contains date values
- "P" = array is a pointer array
- "" = object is not an array.
- array
The array object.
Description
The ArrayType() function determines the data type of an array. E.g. Property, C, N, D, etc. If argument is not an array, returns null
Example
dim ptr as P ? IsArray(ptr) = .f. dim ptr2[1] as P ? IsArray(ptr2) =.t. ? arraytype(ptr2) = "P"
See Also