Page 1 of 1
where is the examples map in SB 2.00 ?
Posted: Sun Nov 06, 2016 8:10 pm
by T4r4ntul4
Where is the examples map in SB 2.00 ? Cant find it anywhere...
Re: where is the examples map in SB 2.00 ?
Posted: Sun Nov 06, 2016 8:13 pm
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
Re: where is the examples map in SB 2.00 ?
Posted: Sun Nov 06, 2016 8:57 pm
by T4r4ntul4
yeah... So where is it? I didnt mean map in code, i mean the file map in windows explorer...
look:

Re: where is the examples map in SB 2.00 ?
Posted: Sun Nov 06, 2016 9:01 pm
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
Re: where is the examples map in SB 2.00 ?
Posted: Sun Nov 06, 2016 9:32 pm
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.
Re: where is the examples map in SB 2.00 ?
Posted: Sun Nov 06, 2016 10:41 pm
by falsam
Try C:\ProgramData\SpiderBasic\Examples
Re: where is the examples map in SB 2.00 ?
Posted: Sun Nov 06, 2016 10:59 pm
by swan
I was wondering the same, thanx falsam ....

Re: where is the examples map in SB 2.00 ?
Posted: Mon Nov 07, 2016 6:08 am
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)
Re: where is the examples map in SB 2.00 ?
Posted: Mon Nov 07, 2016 6:17 am
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

.
Re: where is the examples map in SB 2.00 ?
Posted: Mon Nov 07, 2016 11:23 am
by falsam