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

Re: Dynamic arrays in SQR 4.3.4



Andy,

All releases of SQR known to me need to have a number there.
You can use an ASK or #define variable (e.g., {EMP_CNT}), but
this probably doesn't solve your problem.

My advice is to simply pick a large enough number.

Ray

> Hello,
>
> In SQR 4.3.4, is it possible to define a runtime dynamic array with
> something like this...
>
> #EmpCnt being a record count of a table
>
>  create-array name=PayReg size = #EmpCnt
>       field=ActHrs:Decimal
>       field=RegPay:Decimal:2
>       field=OTPay:Decimal:2
>       field=VacPay:Decimal:2
>       field=SickPay:Decimal:2
>       field=LieuPay:Decimal:2
>       field=OtherPay:Decimal:2
>       field=CITTax:Decimal:2
>       field=CPPTax:Decimal:2
>       field=EITax:Decimal:2
>       field=BenRepay:Decimal:2
>
> I have found no way to do this.  If there is no way, is this functionality
> present in later releases?
>
> TIA
> __________________________________________
> Andy Knapp
> Programmer/Analyst
> Enwin Utilities Ltd.
> 519-255-2888 x822
> aknapp@enwin.com
>

----------------------------------------------------------------------
Ray Ontko   rayo@ontko.com   Phone 1.765.935.4283   Fax 1.765.962.9788
Ray Ontko & Co.   Software Consulting Services   http://www.ontko.com/