Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BUG: ARRAY in user-defined-types
#1
When i try to define an ARRAY variable inside a user defined type i can only define it as a pointer to ARRAY.
Although the help file mentions it can be used (with example), QM gives error about unexpected char.

Here is an example code (not working) with the error by QM:
Code:
Copy      Help
type tJob
    int'iCurrent
    int'iAction
    int'iNext
    int'iText
    ARRAY(POINT)'Area
And here is an example code (working):
Code:
Copy      Help
type tJob
    int'iCurrent
    int'iAction
    int'iNext
    int'iText
    ARRAY(POINT)*Area
The workaround i made was to define it as a pointer and assign the address of a global ARRAY variable.
Like this:
Code:
Copy      Help
type tJob
    int'iCurrent
    int'iAction
    int'iNext
    int'iText
    ARRAY(POINT)*Area
ARRAY(POINT)+ gActionAreaArray
tJob+ Job
Job.Area = &gActionAreaArray

So am i doing something wrong or is the first usage bugged?

*edit*
The current QM version im using is the 2.1.8.beta
Well thats all for now, 3M
#2
Arrays in types can be defined without ', like ARAY(str)a. It is sometimes confusing me too. I'm going to fix this so that ' also could be used.
#3
ok ty
Well thats all for now, 3M


Forum Jump:


Users browsing this thread: 1 Guest(s)