GET TYPE PATTERN$ This command will return the data type pattern of a given type.
Syntax
    Return String=GET TYPE PATTERN$(Type Name$)
    Return String=GET TYPE PATTERN$(Type Name$,Type Index)
Parameters
    Type Name$
String A string specifying the exact name of the type to obtain the pattern of
    Type Index
Integer A value indicating the internal type index
Returns
A string containing the pattern of the type structure
Description
The pattern is returned as a string, with each character representing a native data type as follows; L=integer, F=float, S=string, B=boolean, Y=byte, W=word, D=dword, O=double float, R=double integer. You can only search by name or index, not both at the same time.
Example Code
    type firsttype

     a as integer

     b as string

     c as float

    endtype

    type secondtype

     e as DWORD

     x as firsttype

     d as double integer

    endtype

    dim myarray(5) as secondtype

    for i=0 to 5

     myarray(i).e=i*2

     myarray(i).x.a=i

    next i

    typeindex=get array type(myarray())

    print "ARRAY TYPE=";typeindex

    print "TYPE IN ARRAY=";get type pattern$("",typeindex)

    print "TYPE PATTERN=";get type pattern$("firsttype",0)

    for i=0 to 5

     print myarray(i).x.a;" ";myarray(i).e

    next i

    wait key
See also
CORE Commands Menu Index