我在以下單元(Delphi Alexandria)中收到上述錯誤以及“'CalculateInventoryColumnWidths'的不滿足前向或外部宣告”錯誤:
unit InventoryListing;
interface
uses
Classes, FireDac.Comp.Client, FMX.StdCtrls, FMX.frxClass,
AppGlobals;
procedure CalculateInventoryColumnWidths(var ColWidths: TColWidthsArray;
var TopTitles, MiddleTitles, BottomTitles: TStringList);
implementation
uses
SysUtils, StrUtils, System.Variants, System.UITypes,
Globals, Data;
type
TColWidthsArray = array of single;
var
fInventorySQL: string;
procedure CalculateInventoryColumnWidths(var ColWidths: TColWidthsArray;
var TopTitles, MiddleTitles, BottomTitles: TStringList);
begin
{implementation code}
end;
End.
我在整個專案中搜索了這個程序名稱,只找到了一個實際呼叫這個程序的實體。我嘗試從專案中洗掉原始單元(包含程式的所有細節)并創建一個全新的單元(上圖)進行測驗,但仍然出現上述錯誤。
我確定我在這里做錯了什么,但我一生都無法弄清楚。有人可以幫我看看我哪里出錯了嗎?
uj5u.com熱心網友回復:
介面宣告參考TColWidthsArray,它可能在AppGlobals中宣告,但實作參考了TColWidthsArray上面給出的幾行的本地宣告。所以兩者都參考了不同的型別,因此不匹配。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/503916.html
標籤:德尔福
上一篇:在螢屏右下角顯示一個表格
