Although it would be nice to be able to set a starting attribute, so - for 
example - figures for a specific year could be written to a small array without 
using offsets. VB6 allows this - not found a way in unidata, though.

 

DIM YEAR.INFO(1990 to 2008)

 

Ed

 

From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: 01 June 2009 16:29
To: U2 Users List
Subject: Re: [U2] Dimensioned Array Question

 

OOH, thats what the second attribute is for .

 

I did test it, and DIMensioned my test to 10,5

and yes, the second attribute changed from 1 -> 5

 

So, the second attribute is not the starting attribute, but the Y dimension.

 

George

 

From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
Sent: Monday, June 01, 2009 11:20 AM
To: 'U2 Users List'
Subject: Re: [U2] Dimensioned Array Question

 

Hi Karen

 

That should work on UniVerse also:

 

CT test.bp call called

 

     call
0001 DIM Array(20)
0002 call called(MAT Array)

 

     called
0001 SUBROUTINE called(MAT Array)
0002 Crt InMat(Array)
0003 STOP

 

run test.bp call
20ý1

 

i.e. 20 x 1 (remember arrays can be more than one dimension)

 

Brian

 

         

        
________________________________


        From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bessel, Karen
        Sent: 01 June 2009 15:54
        To: u2-users@listserver.u2ug.org
        Subject: [U2] Dimensioned Array Question

        A co-worker has a question about a dimensioned array that is being 
passed to a subroutine. 

         

        Program MainLine 

         

        DIM MY.ARRAY(20)

        Call Sub.Program (MAT MY.ARRAY)

         

         

        Subroutine Sub.Program (MAT MY.ARRAY)

         

        Is there any command in the subroutine that will tell her what the 
dimensions of MY.ARRAY are????? The correct answer is 20. J 

         

        INMAT was suggested but does not provide this info.

         

        Thanks,

         

        Karen

         

         

         

         

        Karen Bessel

        Software Developer

         

        Tyler Technologies, Inc.

        6500 International Parkway, Suite 2000

        Plano, TX 75093

        Phone: 972.713.3770 ext: 6227

        Fax: 972.713.3780 

        Email: karen.bes...@tylertech.com

        Web: www.tylertech.com <http://www.tylertech.com/> 

         

         

         

        Tyler is proud to be the Platinum Sponsor of 
        The Court Technology Conference 2009 
<http://www.ncsc-ctc.org/websites/_ctc2009> 
        Sept. 22-24, 2009 | Denver, CO


-------------------------------------------------------------------------------------------
Please remember to recycle wherever possible. 
Reduce, reuse, recycle, think do you need to print this e-mail?
-------------------------------------------------------------------------------------------
This e-mail and any attachment(s), is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the 
addressee, dissemination, copying or use of this e-mail or any of its content 
is prohibited and may be unlawful. If you are not the intended recipient please 
inform the sender immediately and destroy the e-mail, any attachment(s) and any 
copies. All liability for viruses is excluded to the fullest extent permitted 
by law. It is your responsibility to scan or otherwise check this email and any 
attachment(s). Unless otherwise stated (i) views expressed in this message are 
those of the individual sender (ii) no contract may be construed by this 
e-mail. Emails may be monitored and you are taken to consent to this 
monitoring.  

Civica Services Limited, Company No. 02374268; Civica UK Limited, Company No. 
01628868
Both companies are registered in England and Wales and each has its registered 
office at 2 Burston Road, Putney, London, SW15 6AR.
-------------------------------------------------------------------------------------------

<<~WRD000.jpg>>

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to