[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] Re: Fetching value from 2-Dim. Array



Sudeep

In your array declaration you assign "size=2" - this is the number of
elements in the array, not the number of fields\dimensions.  

Bruce


>
>From: "Sudeep Vaidya" <sudeep_vaidya@techie.com>
>To: sqr-users@sqrug.org
>Date: Sat, 29 Nov 2003 01:03:06 -0500
>Subject: [sqr-users] Fetching value from 2-Dim. Array
>
>Hi,
>
>I'm trying to write a SQR report. I'm facing an  error in fetching avalue
from a 2- dimensional  array. 
>Attahced is the peice of code from this report.
>
>The variable #count is used to get the second dimension  from the Array. 
>
>I'm trying to fetch the value of an element (0, #count) from the array.
When I try to do this inside the begin-select, the value is properly
fetched. 
>When I try to print the value of Array element, I'm inable to get the
element . It always prints the value of (0,0) , inspite of the fact that
#count is 250. this means it should print the value of (0,#count), where
#count between 0 and max .
>
>
>All inputs in this regard would be very  helpful.
>thanks in advance.
>
>Sudeep
>
>
>
>begin-procedure STDDetermineWE($StartDate,$EndDate,:#count)
>
> create-array name=WeekEndingArray size = 2
>  field=WeekEnding:char:300='No Data' 
>  field=Amount:number:300=0
>
Sent using cyberus.ca WebMail - http://www.cyberus.ca/

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users