Examples Delphi

Question:
1) When compiling an Delphi-5 source test, the compiler cannot find symbols like SLineTooLong.
They are resource constants that are used with ResStr(). Where are they in Delphi 7?
2) What about symbols like Unassigned and functions for variant arrays? (VarArrayOf)
Answer:
1) you need to add unit RtlConsts to your uses clause.
2) you need to add unit Variants to your uses clause.

uses
RtlConsts, Variants; // these are the new units
// constants that are now in RtlConsts:
raise Exception.Create(ResStr(SLineTooLong));
raise Exception.Create(ResStr(SFOpenError));
// functions now in Variants;
Result := not VarIsEmpty(FValue);