Quantcast
Viewing all articles
Browse latest Browse all 794

Talking LiveCode • Re: Problem with revCopyFile

Hi Robert,

please use the CODE tags above (5th button from the left) after pasting your script.
That will keep the formatting and makes the script better readable_

CODE:

...   if tAppExeVersionUpdateCheck > tAppExeVersionMusicRGTCheck then      put tFolderMusicRGT & slash & tTextToCheck & " -- 1" & return into msg -------      delete file tFolderMusicRGT & slash & tTextToCheck      put the result & " -- 2A" & return after msg ------      put the sysError & " -- 2B" & return after msg ------      put tFolderUpdate & slash & tTextUpdate into tFileToCopy      put tFileToCopy & " -- 3" & return after msg -------      put tFolderMusicRGT & " -- 4" & return after msg ------      revCopyFile tFileToCopy, tFolderMusicRGT      if the result is empty then ------         put "the result is empty -- 5A" & return after msg ---      else -----         put the result & " -- 5B" & return after msg -------      end if -----      if the sysError is empty then ------         put "the sysError is empty -- 6A" & return after msg ---      else -----         put the sysError & " -- 6B" & return after msg -------      end if      set the thumbPosition of scrollbar "Progress" to 100      put "Replacing Mac App with " & quote & tTextUpdate & quote & " is Completed." & \            return & return after field "Status"   else      put "Mac App - " & quote & tTextUpdate & quote & " is the latest !" & return & \            return after field "Status"   end if   ...
One possible issue might be this line:

CODE:

delete file tFolderMusicRGT & slash & tTextToCheck
ALWAYS use parens whzen concatenating file and objenames, try this:

CODE:

delete file (tFolderMusicRGT & slash & tTextToCheck)
Hint: You may want to save some typing by using
"/" instead of SLASH
and
CR instead of RETURN Image may be NSFW.
Clik here to view.
:-)


Best

Klaus

Statistics: Posted by Klaus — Mon Feb 03, 2025 8:14 pm



Viewing all articles
Browse latest Browse all 794

Trending Articles