MartinSch wrote:
Eugene wrote:
P.S. You can use "Expression grouping":
Code:
Copy(mpTitle, 1, 1) + '\' + mpTitle
Could I omit the A's and The's, by coding something like this? :
Code:
begin
if Copy(mpTitle, 1, 2) = "A "
then Copy(mpTitle, 3,1) + '\' + Copy(mpTitle, 3, 50)
else if Copy(mpTitle, 1, 4) = "The "
then Copy(mpTitle, 5,1) + '\' + Copy(mpTitle, 5, 50)
else Copy(mpTitle, 1, 1) + '\' + mpTitle
end.
You need set the variable FolderPath, FolderPath := ...
Code:
begin
if Copy(mpTitle, 1, 2) = "A "
then FolderPath := Copy(mpTitle, 3,1) + '\' + Copy(mpTitle, 3, 50)
else if Copy(mpTitle, 1, 4) = "The "
then FolderPath := Copy(mpTitle, 5,1) + '\' + Copy(mpTitle, 5, 50)
else FolderPath := Copy(mpTitle, 1, 1) + '\' + mpTitle
end.