Home > database >  DW_1. SAVEAS () files stored in the specified folder after the success of the pop-up dialog box
DW_1. SAVEAS () files stored in the specified folder after the success of the pop-up dialog box

Time:10-18

. For instance I use DW_1 saveas () storing DW_1 data in the form of EXCEL in the D set AAA folder, I think the pop-up dialog "data successfully saved" or "data save failed," excuse me on how to determine whether the file is generated,
I want to use FileExsits don't seem very right, because it my path is IS_PATH SAVEAS + \ "AAA", the file name is together,

CodePudding user response:

This struggle, with return value directly determine whether save or save that complete success open call API to open the file to process

CodePudding user response:

The Return value

Integer. Returns 1 if it succeeds and 1 if an error occurs. If any argument 's value is null, SaveAs Returns null.


Ingeger li_f
Li_f=dw_1. Saveas ()
If li_ & lt;> 1 then
Messagebox (' prompt ', 'save failed)
The else
Messagebox (' prompt ', 'file successfully saved to' + IS_PATH + "\ AAA. XLS")
End the if
Actually saved using FileExsits function also can determine the,...
  • Related