Oxygen Basic

Programming => Problems & Solutions => Topic started by: chrisc on April 26, 2018, 11:53:23 AM

Title: looking for example code on Savefiledialog
Post by: chrisc on April 26, 2018, 11:53:23 AM
Hello all

i need an example O2 code on Savefiledialog api function and its application

can someone help on this?  any help is much appreciated
Title: Re: looking for example code on Savefiledialog
Post by: JRS on April 26, 2018, 12:10:38 PM
Chris,

Can you give us an idea what your application does?
Title: Re: looking for example code on Savefiledialog
Post by: chrisc on April 26, 2018, 12:14:48 PM
Hi John

my application will open a file and do some data modification and use "Save As" to
save the old file into a new file

or the application allows user to create a new file and then Save into a new file
Title: Re: looking for example code on Savefiledialog
Post by: JRS on April 26, 2018, 12:17:15 PM
Sounds like you're trying to replace the Windows File Explorer? I can't see much of a market for that.

Maybe your creating the next version of extortionware.
Title: Re: looking for example code on Savefiledialog
Post by: chrisc on April 26, 2018, 12:31:41 PM

extortion ware ? that is beyond my ability! 

there are so many apps such as like MS word which allows you to open a new file and then
allow user to save it or save as a different filename.

 these apps also use Savefiledialog 

so are these extortionware?   definitely not
Title: Re: looking for example code on Savefiledialog
Post by: Arnold on April 26, 2018, 03:02:06 PM
Hi Chris,

you can look at \inc\filedialogs.inc (FileDialog) in combination with \inc\OxideUtil.inc (MayPutFile). In Forger_o2 examples there is app_two, app_three, app_four with file dialogs which can be adapted (dofilesave). There is also a SaveFileDialog in projectsB\Scintilla\AsciEdit2.o2bas

Roland
Title: Re: looking for example code on Savefiledialog
Post by: chrisc on April 26, 2018, 03:28:35 PM
Thanxx a lot Roland

the app_two.o2bas is the one that i needed