Conditional Array Definitions

Keith F Weatherhead keithw at ddltd.com
Sat Nov 27 07:22:49 PST 2004


Frank McKinney wrote:
> May one safely define arrays on a conditional basis?
> As in:
> 1. If: yr eq "04"
>  Then:DIM cum[ 14](12,):15
> 
> 2. If yr eq "03"
>  Then: DIM cum[14](12,.):30
> 
> Using SCO 5.0.5 and filepro 4.5 
> 
> Thanks in advance for your answer.

Not as I understand it.  Dimensioning arrays is a "compile time" 
operation.  If the DIM is there, it happens, period.  The DIM MUST 
occur before first use, in table element order NOT logic flow order.

Keith

> Frank Mc Kinney
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
> 
> 
> 

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Keith F. Weatherhead                   keithw at ddltd.com

Discus Data, LTD                  Voice: (815) 237-8467
3465 S Carbon Hill Rd               Fax: (815) 237-8641
Braceville, IL  60407       Nat'l_Pager: (815) 768-8098
- - - - - - - - - - - - - - - - - - - - - - - - - - - -



More information about the Filepro-list mailing list