Aaron:
 
No, it is not possible to declare a two-dimensional array in the manner suggested. The GX manual is fairly complete for the basic GX language syntax, so you can generally assume that if it's not there, it can't be done...
 
There are two 2-dimensional objects (which are generally used for larger amounts of data), which you might investigate: the PG class (which is best suited for grid-like data) and the VA class (which is best suited for line-type data with mulitple channels or columns). These are described, as usual, in pg.gxh and va.gxh.
 

Dr. Stephen J. Cheesman
Research Geophysicist
Geosoft Inc.

Software and services for effective earth science decision-making. Free Oasis montaj interface now available at www.geosoft.com

Geosoft Inc.
8th Floor
85 Richmond St. W.
Toronto, Ontario
Canada M5H 2C9

Tel. (416) 369-0111
Fx. (416) 369-9599
Direct: (905)315-8207
E-mail. [EMAIL PROTECTED]

-----Original Message-----
From: Aaron Balasch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 7:47 PM
To: [EMAIL PROTECTED]
Subject: [gxnet]: Arrays

Is it possible to declare a two dimensional real array in the GX language.
i.e. to declare a 1-d array of ,say, 4 elments the declaration is:
real(4)        x;
I'm wondering if you can declare a 2-d array of 8 elments such as:
real(2, 4)    x;
 
Everytime I do this I get a syntax error. I'm wondering if it's even possible since the GX developer manual doesn't explicitly say you can or cannot have 2-d arrays.
 
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
Phone: (403)228-2175
Fax: (403)244-7955
email: [EMAIL PROTECTED]

Reply via email to