Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Migration Delphi 5 to Delphi 7
This article has not been rated yet. After reading, feel free to leave comments and rate it.
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;
raise Exception.Create(ResStr(SLineTooLong));
raise Exception.Create(ResStr(SFOpenError));
Result := not VarIsEmpty(FValue);
| |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|