![]() |
Delphi-Version: 2010
Incompatible types
I have:
type TBoolans = array of Boolean; Now function uses it. In var I have: var Data: array [1..5] of Boolean. Why I can't use it in function? Is possible to make it usable (TBooleans and array of)? |
AW: Incompatible types
You have declared TBoolans as dynamic array, but your variable Data is a fixed size array.
You need to declare both as TBoolans to make them compatible. |
AW: Incompatible types
If I understand you correctly you have
Delphi-Quellcode:
. I'd change that to
function Func(const AArray: TBooleans);
Delphi-Quellcode:
. The first one accepts only dynamic arrays, the second all Boolean arrays. See
function Func(const AArray: array of Boolean);
![]() |
Re: Incompatible types
Ok, I'm no longer using TBooleans in parameters, just in results, thanks :)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:10 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz