Monday, December 14, 2009

Hi Steve,

> move document($fpath;$tpath) does not work and sets ok to 0
> 
> copy document($fpath;$tpath) works and sets ok to 1

Two things to look for:

> Warning: Using MOVE DOCUMENT, you can move a document from and to any
> directory on the same volume. If you want to move a document between two
> distinct volumes, use COPY DOCUMENT to "move" the document then delete the
> original copy of the document using DELETE DOCUMENT.

and

> The MOVE DOCUMENT command only moves a document; it does not create folders.

So, check your target path; is it on the same volume? Do all folders exist
up to the point where you want to move it to?

Cheers!

Michael Larue

--------------------------

> From: Steve Alex <sa...@mac.com>
> Reply-To: Active4D Developer Discussion List <active4d-dev@aparajitaworld.com>
> Date: Sun, 13 Dec 2009 21:33:48 -0500
> To: active4d-...@mailman.aparajitaworld.com
> Subject: [Active4d-dev] Does Move Document work?
> 
> Active4D 4.5, mac os x
> 
> $fpath := valid full path, native or url
> test path name($fpath) > 1
> $tpath := valid full path, native or url
> test path name($path) > -43
> move document($fpath;$tpath) does not work and sets ok to 0
> 
> copy document($fpath;$tpath) works and sets ok to 1
> 
> I seem to recall having this problems a few years ago and ended up doing a
> copy and delete - don't do much system document stuff
> 
> This can't be a bug! Am I missing something in the Move Document command?
> 
> Steve Alex
> 
> 
> 
> 
> 
> _______________________________________________
> Active4D-dev mailing list
> Active4D-dev@aparajitaworld.com
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

_______________________________________________
Active4D-dev mailing list
Active4D-dev@aparajitaworld.com
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to