A very important warning about the Export command
James Rea
jim at provue.com
Wed Mar 12 16:20:13 PDT 2008
> The below commands were a part of a
> ..CloseDatabase procedure. It all worked fine
> until the Share was not available. When the path
> for the text file became unavailable, Panorama
> proceeded to write the data to a text file but
> wrote this information over and on top of the
> Panorama database file that was being closed by
> the user via the Close button.
>
> Export "Public:Export folder:"+"Customers Data.txt",
This appears to be a bug introduced in 2004 during the OS 9 to OS X
transition. It also appears in the saveas and saveacopyas statements,
and there is a related problem in the openfile statement (it can open
the wrong file if the volume is not available). I have fixed the bug for
the next release. In the meantime, here is a workaround:
if arraynotcontains(info("volumes"),"Public",cr())
rtnerror "Sorry, Public is not currently mounted"
endif
Export "Public:Export folder:"+"Customers Data.txt",
Hmm, actually in a ..CloseDatabase procedure you would might just want
it to silently fail -- your choice. When the update comes out you could
control what happens if the volume is missing by using if error after
the export statement.
Jim Rea
President, ProVUE Development
---------------------------------------------------------------------
--- Celebrating 29 years of software excellence (1978-2007) ---
---------------------------------------------------------------------
ProVUE Development (714) 841-7779
18685-A Main Street PMB356 http://www.provue.com/
Huntington Beach, CA 92648 Panorama: Turn information into knowledge
---------------------------------------------------------------------
More information about the Qna
mailing list