Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileMove (Powerbuilder)

Status
Not open for further replies.

maryann2008

Programmer
Sep 8, 2008
4
CA
This function work fine most of the time but not all the time. Is there any reason why? I'm producing and re-naming PDF files. This function returns -1 (error opening source file) at one point which make my whole functionality not work. The PDF opens just fine when I double click on it (from explorer).
Does anybody have any ideas?
Thanks.
 
Make sure the file is closed after creation.

Matt

"Nature forges everything on the anvil of time
 
Thanks, but that's the first thing I checked. Any other suggestions?
 
I had issues with files in the past. One technique I used was to check the fileopen return and then wait a few seconds and try again. This was in a loop which quit after x number of tries if it failed to open the file.

Matt

"Nature forges everything on the anvil of time
 
thanks. that makes sense. we'll keep it in mind for the fix.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top