DelphiFAQ Home Search:
General :: Programming :: Delphi :: Delphi IDE
Information about the Delphi IDE, add-in experts and wizards.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Migration Delphi 5 to Delphi 7

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);
 
You don't like the formatting? Check out SourceCoder then!
Generated 4:01:08 on Aug 19, 2018