DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

when using AreaLinePt(1,1)="sdF" command it is throwing an error "invalid vector or matrix index" why ?

Hi i am using AreaLinePt(1,1)=some size to draw a frame. but i am getting an error message saying "invalid vector or matrix index" why ? where i went wrong anybodya guide me for this. I am using DIAdem 9.0.
0 Kudos
Message 1 of 2
(3,399 Views)
Hi,

The correct way to set the size for a frame is this:

Call GRAPHObjOpen("FreeFrame1")
AREALINEPT(1) =20.19
AREALINEPT(2) =27.27
AREALINEPT(3) =56.23
AREALINEPT(4) =79.88
Call GRAPHObjClose("FreeFrame1")

Here is the description of the AreaLinePt variable from the latest DIAdem help file, the description in version 9.0 is not that great:

Variable: AreaLinePt
Specifies the distance between rectangles and the edge of a page in DIAdem REPORT, as a percentage of the page area, in centimeters or inches.

Definition AreaLinePt(i), Real variable
i = 1 ... 4
0 <= AreaLinePt <= PicObjMaxSize

The AreaLinePt uses the i index to specify the distance of all four frame sides:

i = 1 Specifies the distance between the bottom left c
orner and the left side of the page.
i = 2 Specifies the distance between the bottom left corner and the bottom of the page.
i = 3 Specifies the distance between the top right corner and the left side of the page.
i = 4 Specifies the distance between the top right corner and the bottom of the page.

If you select the same values for the parallel sides AreaLinePt(1) and AreaLinePt(3) or AreaLinePt(2) and AreaLinePt(4), DIAdem displays the rectangle as a vertical or horizontal line.

Hope this helps. Please let me know if you have additional questions,

Otmar
Otmar D. Foehner
0 Kudos
Message 2 of 2
(3,399 Views)