where is the examples map in SB 2.00 ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
T4r4ntul4
Posts: 132
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands
Contact:

where is the examples map in SB 2.00 ?

Post by T4r4ntul4 »

Where is the examples map in SB 2.00 ? Cant find it anywhere...
User avatar
ts-soft
Posts: 9
Joined: Wed Feb 26, 2014 2:00 pm
Location: Berlin - Germany

Re: where is the examples map in SB 2.00 ?

Post by ts-soft »

As the other examples!

Code: Select all

;
; ------------------------------------------------------------
;
;   SpiderBasic - Map example file
;
;    (c) Fantaisie Software
;
; ------------------------------------------------------------
;

Structure BasicStructure 
  Field1.b
  Field2.w
  Field3.l
EndStructure

NewMap TestMap.BasicStructure()

;
;-------- Add Elements and TestMaps --------
;

TestMap("ok1")\Field2 = 1
TestMap("ok2")\Field2 = 2
TestMap("ok3")\Field2 = 3
TestMap("ok4")\Field2 = 4

Debug "Number of elements in the Map: " + MapSize(TestMap())

; First way to Map all the elements
;
ResetMap(TestMap())               ; Reset the Map index before the first element.
While NextMapElement(TestMap())  ; Process all the elements...
  Debug "Field2 value : " + TestMap()\Field2
Wend

Debug "Now uses 'ForEach' type listing:"

; Second way, with the help of ForEach
;
ForEach TestMap()       ; Process all the elements...
  Debug "Field2 value : " +  TestMap()\Field2
Next

Debug "Uses direct access to the 3rd element:"

; Go directly to the 3rd element
FindMapElement(TestMap(), "ok3")

Debug "Field2 value : " + TestMap()\Field2
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
T4r4ntul4
Posts: 132
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands
Contact:

Re: where is the examples map in SB 2.00 ?

Post by T4r4ntul4 »

yeah... So where is it? I didnt mean map in code, i mean the file map in windows explorer...

look:

Image
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: where is the examples map in SB 2.00 ?

Post by Peter »

http://forums.spiderbasic.com/viewtopic ... 2644#p2644:
Fred wrote:- Changed: Examples on Windows are now installed in 'common app' folder to avoid permission issues
User avatar
T4r4ntul4
Posts: 132
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands
Contact:

Re: where is the examples map in SB 2.00 ?

Post by T4r4ntul4 »

Yes, so where to find that?

edit:

before i get a post that says 'search for it' i already did that, that map doesnt exist on my windows 10 machine. Why do you think iam asking it here?
Please give me a C:/ ... etc link to the map.
falsam
Posts: 286
Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:

Re: where is the examples map in SB 2.00 ?

Post by falsam »

Try C:\ProgramData\SpiderBasic\Examples

➽ Windows 11 - jdk-11.0.2 - SB 3.00 - Android 15
https://falsam.com

Sorry for my poor english
swan
Posts: 23
Joined: Tue Dec 15, 2015 2:56 am

Re: where is the examples map in SB 2.00 ?

Post by swan »

I was wondering the same, thanx falsam .... :D
User avatar
T4r4ntul4
Posts: 132
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands
Contact:

Re: where is the examples map in SB 2.00 ?

Post by T4r4ntul4 »

ah, in a hidden Windows map, now thats handy.... but i found it, thanks.
(i thought it would have the name 'common apps', never heard of it anyway)
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: where is the examples map in SB 2.00 ?

Post by Fred »

We moved the examples because on Windows 7+ you couldn't compile them if you installed SpiderBasic in ProgramFiles (as it's readonly). It's common way to put common app data in this special folder. You got an issue because you had a previous spiderbasic.prefs file which pointed to older directory. New users shouldn't be affected by this :).
falsam
Posts: 286
Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:

Re: where is the examples map in SB 2.00 ?

Post by falsam »

:idea: Examples on line http://www.spiderbasic.com/showcase/onlineviewer/ (View and Run)

➽ Windows 11 - jdk-11.0.2 - SB 3.00 - Android 15
https://falsam.com

Sorry for my poor english
Post Reply