Home > database >  How to realize the operation of the disk file directory in the powerbuild?
How to realize the operation of the disk file directory in the powerbuild?

Time:10-03

Masters, I am a new comer, novice also have a question to ask: I think in the program will implement a file, such as excel file saved to the database, how to preserve has been solved, but don't know how to achieve the effect of let users select files, just like in Windows open iexplore lookup file, select the file directory and name the file after stored in variables, please say something in detail, the most want to write the source code (including where), thank you.

CodePudding user response:

String ls_path, ls_file

Int li_rc


Li_rc=GetFileSaveName (" save file ", ls_path ls_file, "DAT", "data files (*. DAT), *. DAT")



Ls_path path, ls_file filename
Specific usage see help!

CodePudding user response:

Upstairs is
Use GetFileSaveName used to choose the path to save, the file
Use GetFileOpenName used to choose to open the file, the path

Specific look at the HELP, write very clearly
  • Related