DelphiFAQ Home Search:

Migration Delphi 5 to Delphi 7


commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

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)

1) you need to add unit RtlConsts to your uses clause.
2) you need to add unit Variants to your uses clause.

  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!
Content-type: text/html


2012-11-12, 04:03:25
anonymous from United States  



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: