How to initialise static arrays with varying sizes ?
From: André Hodder (andre.hodder_at_epfl.ch)
Date: 08/24/04
- Next message: J French: "Re: Canvas Handles"
- Previous message: Christakis John: "Canvas Handles"
- Next in thread: J French: "Re: How to initialise static arrays with varying sizes ?"
- Reply: J French: "Re: How to initialise static arrays with varying sizes ?"
- Reply: Bruce Roberts: "Re: How to initialise static arrays with varying sizes ?"
- Reply: Marc Rohloff: "Re: How to initialise static arrays with varying sizes ?"
- Reply: Jamie: "Re: How to initialise static arrays with varying sizes ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 24 Aug 2004 08:51:02 +0200
Hi all,
I have an application that uses static arrays in its code. Depending on the
use of the application, these static arrays may require different sizes, not
in running mode but before executing the application.
For example :
const MAXSIZE = 10;
var myarray [0..MAXSIZE,0..MAXSIZE] of double;
before running the application maxsize should take on different values. The
problem is that i cannot use dynamic arrays and i cannnot set a MAXSIZE
large enough to cover all the encountered values of MAXSIZE.
For now i need to recompile it with the correct value each time.
What i would like to do is to put the value of MAXSIZE in a file that is
read before launching the Application.Create ?
Any help ?
André Hodder
- Next message: J French: "Re: Canvas Handles"
- Previous message: Christakis John: "Canvas Handles"
- Next in thread: J French: "Re: How to initialise static arrays with varying sizes ?"
- Reply: J French: "Re: How to initialise static arrays with varying sizes ?"
- Reply: Bruce Roberts: "Re: How to initialise static arrays with varying sizes ?"
- Reply: Marc Rohloff: "Re: How to initialise static arrays with varying sizes ?"
- Reply: Jamie: "Re: How to initialise static arrays with varying sizes ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]