QT: how do I determine wheter a chosen file is within the same folder as a new chosen destination folder?
William de Smet
williamdesmet at gmail.com
Fri Sep 12 02:08:18 EDT 2008
Hi there,
I do two things :
on mouseUp
answer file "Kies bestand:"
if the result is "Cancel"
then exit mouseUp
else put it into bLijst
answer folder "Kies map" -- selection of destination folder
if the result is "Cancel" then exit mouseUp
put it & "/" into bMap
end mouseup
After this I write back a new file into bMap.
But...I don't want destfolder to be the same folder as where the chosen file
is in.
Otherwise the file will be overwritten.
I tried with:
if filePath bLijst is within filePath bMap then answer error "Fout!"
but that doesn't work.
Any idea's?
Thanks!
greetings,
William de Smet
More information about the use-livecode
mailing list