Examples

Post Reply
davey110
Posts: 91
Joined: Mon Dec 26, 2016 11:01 pm
My devices: iPod touch 6
iPad mini 2
Flag: Canada

Examples

Post 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.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Examples

Post 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:
The only thing that gets me down is gravity...

davey110
Posts: 91
Joined: Mon Dec 26, 2016 11:01 pm
My devices: iPod touch 6
iPad mini 2
Flag: Canada

Re: Examples

Post 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… "

User avatar
GeorgeMcGinn
Posts: 435
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10
Location: Venice, FL
Flag: United States of America
Contact:

Re: Examples

Post 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:
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)

Post Reply