Search found 19 matches
- Fri May 22, 2020 1:55 am
- Forum: Coding Questions
- Topic: compiler Include does not see globals
- Replies: 4
- Views: 2324
Re: compiler Include does not see globals
In PureBasic it works fine; is this a difference between the 2 compilers? But what about modules? main.sb XIncludeFile "./inc.sbi" DeclareModule test Declare myfun() EndDeclareModule Module test UseModule test Procedure myfun() test2::myFormat() <--- this should be seen...but I get compile...
- Wed May 20, 2020 11:01 am
- Forum: Coding Questions
- Topic: compiler Include does not see globals
- Replies: 4
- Views: 2324
compiler Include does not see globals
inc.sbi CompilerIf Not Defined( PB_Compiler_Unicode, #PB_Constant ) #PB_Compiler_Unicode = #True #PB_Compiler_Thread = #True #SB_Compiler_SpiderBasic = 230 debug "Using Spiderbasic " + #SB_Compiler_SpiderBasic CompilerEndIf CompilerIf Defined(SB_Compiler_SpiderBasic, #PB_Constant) Procedur...
- Sun May 03, 2020 8:07 pm
- Forum: Bugs Reports
- Topic: Possible SB bug
- Replies: 1
- Views: 5723
Possible SB bug
This code works fine in PureBasic But ;- SB BUG ;- the following lines are ignored ForEach mapIndexMap()\llIndex() iIndex + 1 *p = mapIndexMap()\llIndex() Debug "[" + RSet( Str(iIndex), 3 ) + "] sText=" + LSet( *p\sText, 21 ) + " [" + Str( *p\iNum ) + "] --> "...
- Fri May 01, 2020 9:08 am
- Forum: Coding Questions
- Topic: Comparing strings [SOLVED]
- Replies: 2
- Views: 1556
Re: Comparing strings [SOLVED]
Thanks. Didn't think of that
- Fri May 01, 2020 6:21 am
- Forum: Coding Questions
- Topic: Comparing strings [SOLVED]
- Replies: 2
- Views: 1556
Comparing strings [SOLVED]
Maybe this might be a stupid question, but how do you compare 2 string in a case insensitive way using Spiderbasic?
- Sun Apr 26, 2020 12:54 am
- Forum: General Discussion
- Topic: 64bit on windows
- Replies: 4
- Views: 2522
Re: 64bit on windows
I will come back to you on that as am re-writing the core
- Sat Apr 18, 2020 2:25 pm
- Forum: Tricks 'n' Tips
- Topic: Memory file system
- Replies: 0
- Views: 3759
Memory file system
; -- Memory File System -- ; ; Tested in Ascii, UTF8 and Unicode ; PBx64 v5.71 and Spiderbasic 2.30 ; ; Based on srod's (nxSoftware) memoryfile.pbi ; ; Please note that most of the credit goes to srod ; ; Kingwolf71 Apr/2020 ; V1.00 ; ; ; Free for use and distribution under Standard GPL ; -- Memory ...
- Fri Apr 17, 2020 7:04 am
- Forum: Coding Questions
- Topic: Peek/poke issues
- Replies: 0
- Views: 2866
Peek/poke issues
When this is complete I will post it on both PB and SB forums so everyone can use it. It is a memory filesystem which works on PureBasic and SpiderBasic. In PB, everything works well. This is a downsized version of what I am trying to do; Code never makes it to the end; and I believe one of the issu...
- Fri Apr 17, 2020 1:17 am
- Forum: Coding Questions
- Topic: why this code does not work?
- Replies: 2
- Views: 1590
why this code does not work?
EnableJS function memcpy(dest, src, n) { dest.set(src.slice(0, n)) } DisableJS Procedure test1() *p1 = 0 *p2 = 0 !p_p1 = new Uint8Array(100) !p_p2 = new Uint8Array(100) PokeS( *p1, 0, "today is a good day", -1 ) PokeS( *p2, 0, "another test string", -1 ) ;!memcpy( p_2, p_1, 10 )...
- Fri Apr 17, 2020 12:21 am
- Forum: General Discussion
- Topic: 64bit on windows
- Replies: 4
- Views: 2522
Re: 64bit on windows
Do you have particular needs for a 64 bit version ? The Javascript output is the same for all version, so only the 32-bit version is shipped because it runs on all Windows. Strictly speaking, I don't need it. I am writing a cross platform compiler/Virtual machine targeted at 64bit systems, the prob...