|
List Info
Thread: regardin dynamic array from delphi3 to delphi5
|
|
| regardin dynamic array from delphi3 to
delphi5 |

|
2006-04-03 12:34:12 |
|
Hi There!
I m trying to migrate from delphi3 to delphi5.
In That i would like to know is there any difference for dynamic arrays that were used in Delphi3 and Delphi5?
I m just trying to execute delphi3 code in delphi5 enviroment. Is there any change needed to make it run properly?
I m giving code snippet, Please help me in moving ahead:
In LibInfo.pas file:
TSysElClass = class of TSysEl;
TDirectory = class
private
FPDataTypes: TList;
FSysElClasses: TList;
public
constructor Create(PDataTypes : array of TPDataType;
SysElClasses : array of TSysElClass;
ReqdDirs : array of ShortString;
UsedPubUnits : array of ShortString;
UsedPriUnits : array of ShortString); virtual;
destructor Destroy; override;
property PDataType [DTID:Integer]: TPDataType read GetPDataType; default;
property SysElClass[SEID: Integer]: TSysElClass read GetSysElClass;
end;
Implementation
Some global functions declarations ....
constructor TDirectory.Create(PDataTypes : array of TPDataType;
SysElClasses : array of TSysElClass;
ReqdDirs : array of ShortString;
UsedPubUnits : array of ShortString;
UsedPriUnits : array of ShortString);
var
i: Integer;
begin
inherited Create;
FPDataTypes:= TList.Create;
FEditorClasses:= TList.Create;
FDataTypesModified := False;
for i:= 0 to High(PDataTypes) do
if assigned(PDataTypes[i]) then begin
FPDataTypes.Add(PDataTypes[i]);
if Assigned(PDataTypes[i].EditorClass)then
FEditorClasses.Add(PDataTypes[i].EditorClass)
| |