In Delphi XE3, the copy function can be used for a string type with or without a third parameter. For example,
s := '1234567890'; Writeln(Copy(s, 2));
The above prints are 234567890, if compiled for a 32-bit EXE. However, when the same code compiles into a 64-bit EXE, it does not print anything.
Why is this? I have to actually modify all such code, for example. Copying (s, 2, Length (s) - 1) when porting a 32-bit application to 64-bit.
copy delphi delphi-xe3
Zhihua Lai
source share