Re: Constant array of strings
- From: "Shiva" <shiva087@xxxxxxxxxxx>
- Date: Tue, 12 Apr 2005 13:38:48 +0200
Thanks for the quick reply. The low() and high() should be used, you're
right about that. But the declaration of the constant is still not correct..
do you - or anyone else:-) - know how to get that fixed?
"Marco van de Voort" <marcov@xxxxxxxx> wrote in message
news:slrnd5nce4.2iev.marcov@xxxxxxxxxxxxxxxxxx
> On 2005-04-12, Shiva <shiva087@xxxxxxxxxxx> wrote:
>
> > const
> > test = ('index1', 'index2');
>
> test : array[1..2] of string = ('index1','index2');
>
> > var
> > i: integer;
> >
> > begin
> > for i := 1 to SizeOf(test) do
> > writeln(test[i]);
> > end.
>
> for i:= low(test) to high(test) do
> ...
>
.
- Follow-Ups:
- Re: Constant array of strings
- From: Charles Appel
- Re: Constant array of strings
- From: Maarten Wiltink
- Re: Constant array of strings
- References:
- Constant array of strings
- From: Shiva
- Re: Constant array of strings
- From: Marco van de Voort
- Constant array of strings
- Prev by Date: Re: Constant array of strings
- Next by Date: Re: Reading binary files of irregular format with TMemoryStream
- Previous by thread: Re: Constant array of strings
- Next by thread: Re: Constant array of strings
- Index(es):
Relevant Pages
|
Loading