Posts: 13
Threads: 6
Joined: Jul 2005
type RI
int Min_x, Min_y, Max_x, Max_y, Bits
ARRAY(RI) LI.create(2000); ;;/* Rect Information for Label Data */
int LN; ;;/* Label Number for Label Information */
for( ...... )
LI[100].Bits = LI[99].Bits + 1
Would you Show me a sample code to use Type Array ?
Posts: 11,926
Threads: 138
Joined: Dec 2002
In QM, spaces are separators, everywhere. For this reason, you cannot use
int Min_x
Use either int'Min_x, or #Min_x, or Min_x (int is default type in type and function declarations).
type RI
,Min_x, Min_y, Max_x, Max_y, Bits
ARRAY(RI) LI.create(2000); ;;/* Rect Information for Label Data */
int LN; ;;/* Label Number for Label Information */
for(LN 0 LI.len-1)
,LI[LN+1].Bits = LI[LN].Bits + 1
Posts: 13
Threads: 6
Joined: Jul 2005
I have to be more careful .....
Delete SPACE.... and Code is working....
thx.... gintaras~ ^^;
Posts: 11,926
Threads: 138
Joined: Dec 2002
Also, type name must be specified before each member (if it is not int).
For example, type that have two RECT members must be defined
type XXX RECT'a RECT'b
If it is defined
type XXX RECT'a b
, b is int.
Posts: 13
Threads: 6
Joined: Jul 2005
If I use "int" or "double" etc ...... in Type
Those are not Variable type but member name...
Is it right?
Posts: 11,926
Threads: 138
Joined: Dec 2002
Yes. They are types only if followed by '.