where is the examples map in SB 2.00 ?
where is the examples map in SB 2.00 ?
Where is the examples map in SB 2.00 ? Cant find it anywhere...
Re: where is the examples map in SB 2.00 ?
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: where is the examples map in SB 2.00 ?
yeah... So where is it? I didnt mean map in code, i mean the file map in windows explorer...
look:

look:

Re: where is the examples map in SB 2.00 ?
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 ?
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.
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 ?
Try C:\ProgramData\SpiderBasic\Examples
➽ Windows 11 - jdk-11.0.2 - SB 3.00 - Android 15
➽ https://falsam.com
Sorry for my poor english
Re: where is the examples map in SB 2.00 ?
I was wondering the same, thanx falsam .... 

Re: where is the examples map in SB 2.00 ?
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)
(i thought it would have the name 'common apps', never heard of it anyway)
Re: where is the examples map in SB 2.00 ?
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 ?

➽ Windows 11 - jdk-11.0.2 - SB 3.00 - Android 15
➽ https://falsam.com
Sorry for my poor english