Solved

Delphi 2 to Delphi 3 Migration

Posted on 1997-12-15
3
236 Views
Last Modified: 2012-05-04
I am attempting to take a Delphi 2 project to Delphi 3 and keep getting "Incompatable type Error 'String and Integer."
I get one of these errors for each unit in the project. It feferences the Classes.pas file. I am recompiling with the dpr, pas, dfm and res files only. Any Ideas?
0
Comment
Question by:jesusfreak
3 Comments
 
LVL 4

Expert Comment

by:itamar
ID: 1353699
Could you give us some piece of code ?
Thanks.
0
 
LVL 2

Accepted Solution

by:
Waldek earned 100 total points
ID: 1353700
This error maybe ocuured in line like

   raise SomeException.Create(LoadStr(SInsertLineError));

This will no longer work. My suggested change is to use


   raise SomeException.Create(
         {$IFNDEF VER100}LoadStr{$ENDIF}
                              (SInsertLineError));


which conditional on being compiled with Delphi 3 leaves out the "LoadStr"

In general all code making use of the constants declared in
CONSTS(.PAS/.DCU) will cause a compiler error: "Incompatible types:
'Integer' and 'String'"


0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1353701
in www.Borland.com/devsupport/delphi/techdocs/migrate2to3.html
you have all the differrences between 2 and 3.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 104
can't find the executable in Simulator 1 112
how can i search if string exist in array ? 3 69
CheckListBox usage 3 80
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question