Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I want to use Type Array.. Like this
#1
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 ?
#2
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).

Code:
Copy      Help
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
#3
I have to be more careful .....

Delete SPACE.... and Code is working....

thx.... gintaras~ ^^;
#4
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.
#5
If I use "int" or "double" etc ...... in Type

Those are not Variable type but member name...

Is it right?
#6
Yes. They are types only if followed by '.


Forum Jump:


Users browsing this thread: 1 Guest(s)