Author Topic: adding save function for users  (Read 1822 times)

modaholic

  • Newbie
  • *
  • Posts: 9
adding save function for users
« on: February 07, 2011, 04:23:49 AM »
Hi, i was wondering how to add a save function for my program for users to save their own text in.
Thiis way they can edit whats in the txt area and also back it up and save it as is for future use. Thanks :D
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 395
  • Here to help you
Re: adding save function for users
« Reply #1 on: February 07, 2011, 05:49:12 AM »
Quote from: "modaholic"
Hi, i was wondering how to add a save function for my program for users to save their own text in.
Thiis way they can edit whats in the txt area and also back it up and save it as is for future use. Thanks :D

You don't have to do anything because when your program is running as a compiled application or as a stack its default behaviour is for variables, the text in fields and canvas images to be automatically saved when it quits. They are then reloaded as the stack starts up.

There is some detail on this in this post

http://http://tigabyte.com/forums/viewtopic.php?f=19&t=45



The following command causes your program to quit with auto-save disabled:-

Code: [Select]
QuitSave(0)
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

 

anything