Author Topic: looking for example code on Savefiledialog  (Read 418 times)

0 Members and 1 Guest are viewing this topic.

chrisc

  • Guest
looking for example code on Savefiledialog
« 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

John

  • Hero Member
  • *****
  • Posts: 3249
Re: looking for example code on Savefiledialog
« Reply #1 on: April 26, 2018, 12:10:38 PM »
Chris,

Can you give us an idea what your application does?

chrisc

  • Guest
Re: looking for example code on Savefiledialog
« Reply #2 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

John

  • Hero Member
  • *****
  • Posts: 3249
Re: looking for example code on Savefiledialog
« Reply #3 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.

chrisc

  • Guest
Re: looking for example code on Savefiledialog
« Reply #4 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

Arnold

  • Hero Member
  • *****
  • Posts: 660
Re: looking for example code on Savefiledialog
« Reply #5 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
« Last Edit: April 26, 2018, 03:11:45 PM by Arnold »

chrisc

  • Guest
Re: looking for example code on Savefiledialog
« Reply #6 on: April 26, 2018, 03:28:35 PM »
Thanxx a lot Roland

the app_two.o2bas is the one that i needed