Open array
- From: Fons Rave <fonzzz-at-xs4all-dot-nl>
- Date: Tue, 22 Aug 2006 18:12:55 +0200
procedure OpenArray;
procedure Xxx(Bbb : array of boolean);
begin
end;
type TArrayOfBoolean = array of boolean;
procedure Yyy(Bbb : TArrayOfBoolean);
begin
end;
var B : array of boolean;
begin
Xxx([True, False, True]); // 1
B := [True, False, True]; // 2
Yyy([True, False, True]); // 3
end;
Delphi doesn't compile lines 2 and 3. All three look comparable. But they aren't. What's the solution to line 2 and 3 ?
Thanks,
Fons.
.
- Follow-Ups:
- Re: Open array
- From: Rob Kennedy
- Re: Open array
- From: Nicholas Sherlock
- Re: Open array
- Prev by Date: Filtering ADO from other form. Please help!!!
- Next by Date: Delphi contract rates worldwide
- Previous by thread: Filtering ADO from other form. Please help!!!
- Next by thread: Re: Open array
- Index(es):
Relevant Pages
|