I'm using Delphi 5 and I ran into a problem and cannot find the answer.
I'm trying to split a string into two parts. The string is 'AWT 56004' and this is the code.
NumbChars := Copy('AWT 65231', 5, 9);
AlphaChars := Copy('AWT 56004', 1, 4);
The first line produces '56004' as expected.
After the second line is processed both variables are a blank string.
Originally the parameters were variables but in an effort to find the answer I resorted to using constants. Same result.