Page 1 of 1

Examples

Posted: Sat Jan 14, 2017 3:56 am
by davey110
Somehow nearly all the example programs have disappeared from my iPad - the ones that came with Small BASIC. Is there somewhere I can download them again?
How would this have happened in the first place? The folders are there, but they are empty.

Re: Examples

Posted: Sat Jan 14, 2017 5:00 am
by rbytes
Just create a program with one line, "RESTORE EXAMPLES", and run it. This command is listed under Settings. All the examples provided with the first install of smart Basic will be restored. Hard to say how they might have been deleted. The file commands in sB could have done that, but you would have to identify where and how they were used.

Not to worry. I once accidentally issued the command DELETE "/" by missing a line in my code, and I lost everything! / is a wild card for the root folder, and when that is deleted, it takes everything with it. Mr. K. says he now prevents that command from being acted on, but I have no plans to test it! :shock:

Re: Examples

Posted: Sat Jan 14, 2017 5:38 am
by davey110
Thank you. That works great. I knew I had read it somewhere but I couldn't find it.
I have made a file "Resore Examples.txt" containing only that command, "just in case… "

Re: Examples

Posted: Tue Jan 17, 2017 6:12 am
by GeorgeMcGinn
Thanks to your mistake I now do a regular backup to Dropbox.

I know one day i will do the same thing, It's just a matter of time!

George.
rbytes wrote:
Sat Jan 14, 2017 5:00 am
Just create a program with one line, "RESTORE EXAMPLES", and run it. This command is listed under Settings. All the examples provided with the first install of smart Basic will be restored. Hard to say how they might have been deleted. The file commands in sB could have done that, but you would have to identify where and how they were used.

Not to worry. I once accidentally issued the command DELETE "/" by missing a line in my code, and I lost everything! / is a wild card for the root folder, and when that is deleted, it takes everything with it. Mr. K. says he now prevents that command from being acted on, but I have no plans to test it! :shock: