FileOps copy file mystery

Michael Mantkowski michaelj at clientrax.com
Wed Oct 23 12:04:03 UTC 2024


Hi Andrew,

Is it possible your two local variables are tied to a parameter / field /
variable or time reference?  Any reversable blocks involved that be in
called methods that set these variables?

Instead of a breakpoint, try setting up an Ok message to display those
variables just before your copy command, see if they show that they are set
as you think they should be.

Sometimes breakpoints allow the system to catchup with things that are
happening in the stack that makes it hard to trace down something like this.

*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************


-----Original Message-----
From: omnisdev-en On Behalf Of surfway.bigpond.com via omnisdev-en
Sent: Wednesday, October 23, 2024 12:16 AM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Cc: surfway.bigpond.com <surfway at bigpond.com>
Subject: FileOps copy file mystery

I have this line of code to copy a file from one directory to another

Do FileOps.$copyfile(lfrompath,ltopath) Returns lerror

When I run it comes up with an error 101201 even though the file and paths
do exist. The file does not get copied. The variables are all local

So I put a breakpoint on the line to check what the lfrompath and ltopath
values are and they all look correct and the line then works

So the Breakpoint makes it work

What am I missing?

Andrew McVeigh
Surfway Real Solutions
Phone 02 44412679 Mobile 0418428016
www.surfway.com.au
www.berrarabeach.com.au

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new
message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list