I post an example with some comments hoping it can help you a bit
Pointers in thinBasic can be done in many ways and maybe I can improve it again.
uses "console"
Type TMyUdt
ALong ...
Type: Posts; User: ErosOlmi
I post an example with some comments hoping it can help you a bit
Pointers in thinBasic can be done in many ways and maybe I can improve it again.
uses "console"
Type TMyUdt
ALong ...
Try to change
Dim bc As String= "Button"
to
Dim bc As String= UTF8ToWideChar$("button")
And use StrPtr (not VarPtr) to return the pointer to the first byte of a dynamic string
Ciao,
just to let you know I'm following this thread testing what you are trying to do and see if there are problems from thinBasic side.
I can confirm there is something I need to fix and...
Hi Brian,
I'm not sure error occurs due to OS_GetComputerName function.
Maybe parser is not able to exactly determine the precise line/byte where error occurs.
Or maybe some char of the computer...
I think I've finished moving from old provider to new provider.
We moved from a dedicated physical server located in Italy to a shared hosted plan in California
Italian server was a 2003 Windows...
Dear all,
this web site is now hosted into a new hosting provider.
I should have fixed all aspects but if you find something not working, please post the details here and I will try to fix.
...
Even if thinBasic is an interpreted languages we have added many native supported data types: https://www.thinbasic.com/public/products/thinBasic/help/html/index.html?numericvariables.htm
We have...
Ciao,
equivalent of DWORDLONG is QUAD in thinBasic. I will add DWORDLONG alias in next thinBasic release.
Here an example of GlobalMemoryStatusEx usage.
uses "console"
Thanks Petr for fixing it.
Can someone test if now it is working fine?
Attached new thinCore.dll
Please copy it into you \thinBasic\ path and try script.
Thanks
Eros
You can still do it if you like.
I sent you Power Basic sources from which I took inspiration.
If you can add more functionalities in linked list included in the sources, just send me and I will...
Ciao Robert,
I cannot give source code I used in thinBasic Core engine but I can send you PowerBasic source code I was inspired from.
Code was public domain by Stanley Durham at...
Install lates thinBasic beta release at https://www.thinbasic.com/community/showthread.php?12949-thinBasic-1-11-x-x
Version 1.11.6
Then check few examples in...
Ciao Rene,
first of all thanks a lot for such visionary post.
I will read in next days. I'm still working a lot on named controls, only half or so are already converted into named and events so...
Ciao Robert,
some thinBasic versions ago (I do not remember exactly in which version) I added some nice data structures directly into thinBasic Core engine without the need to have separated...
Now the question is ...
why do you think google is female?
:D
This scared me for 16 seconds but ...
fortunately seems working fine :)
uses "console"
dim n as Ext
n = 8/2*(2+2)
printl n
Forcing output code page to UTF8 can help.
Put the following at the beginning of the script
Console_SetOutputCP(%CP_UTF8)
ah ah we have hackers here.
But it was not that difficult to follow the version pattern :D:D
Anyway, yes we are testing to create our own Scintilla Edit Control lexer for thinBasic compiling...
You can create your own message box.
Something like the following:
USES "UI"
begin ControlID
Oops, I forgot to add <meta charset="utf-8"/> statement in all .html template files so browser is not interpreting utf-8 output file correctly.
I will amend in next version.
Regarding "constat"...
Ciao Renč,
thinAir options are not working in this alpha/beta version or they are not working as expected.
They are still related to a thinAir version that is not anymore with us.
As I said in...
Nothing ... or weird :)
I will finish few items I was working on and then will work on thinAir options
Thanks a lot
Actually thinAir is not scanning source code for COMPETE variable declarations and not all variables are inserted into autocompletion list.
But we will work on that, I want our thinAir experience as...
thinBasic 1.11.6.0 BETA TESTING update 2020/04/19
DOWNLOAD URL: https://www.thinbasic.biz/projects/thinbasic/thinBasic_1.11.6.0.zip
Added F12 or View/Maximize Edit menu to remove almost all...