For some reason, upon resolving the "|" after a drag&drop action, the
file paths/names(s) containing spaces are put into quotation marks
while those without spaces are not.

I found this very bothersome and can see no reason for this lack of
consistency (unless it be technical / OS-related). Since I wanted the
buttons in question to run different commands depending on whether the
button was simply clicked or had files dropped on it, I needed to
check if the string "|" had a length greater than 1. If this was
true, files would have been dropped and I could have gone from there.
However, whenever the file name(s) contained a blank, I would get an
error message, because there were two double quotes at the beginning
and end of the filename. Thus, none of the string operations can be
used reliably with "|".

Neither could I use the _file_ variable instead because it is
sometimes used elsewhere in PowerPro and will occasionally still be
set to an unrelated file name from some previous action. In such a
case if one of the buttons in question was only clicked, it would be
wrongly assumed that files were dropped and errors would ensue.

After extensive experimentation, I had to use a workaround
involving putting | on the clipboard and using the sting functions on
clip.get.

If there is an easy way to fix this, I think it should have a high
priority since this is bound to beat any newbe.

Thanks & best wishes

Phil

Reply via email to