B
blackgun
Unregistered / Unconfirmed
GUEST, unregistred user!
[Error] UntDynameSqlDemoServer.pas(52): Undeclared identifier: 'VarArrayCreate'<br><br>procedure TDynameSqlDemoServer.GetAllTables(var vTables: OleVariant);<br>var<br> tblList:TstringList;<br> iCount:Integer;<br>begin<br> try<br> tblList:=TstringList.Create;<br> ADOConSql.GetTableNames(tblList);<br> vTables := VarArrayCreate([0,tblList.Count -1],varVariant);<br> for iCount := 0 to tblList.Count -1 do<br> begin<br> vTables[iCount] := tblList.Strings[iCount];<br> end;<br> finally<br> tblList.Free;<br> end;<br>end;<br><br>这是李维分布式多层应用里面第2-27页的代码,今天用delphi7调试了一下。一直出现这个错误,请各位帮忙指正