SpiderBasic 4.00 beta 2 is out !

Everything else that doesn't fall into one of the other categories.
Fred
Site Admin
Posts: 1893
Joined: Mon Feb 24, 2014 10:51 am

Re: SpiderBasic 4.00 beta 2 is out !

Post by Fred »

- 2026-08-14: 4.00 beta 2 is out, with some more improvement in the docs and bug fixes

@Hoerbie: I changed the HTTPRequest() so if a callback is specified, it doesn't lock like before. If no callback, it will be sync. For all file ops, it should now behave like before as well and doc/examples has been updated.
hoerbie
Posts: 151
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

Re: SpiderBasic 4.00 beta 2 is out !

Post by hoerbie »

@Fred: Many many thanks for the change back of HTTPRequest() to usability of the old async callback style.

The good news is, that my big app after two changes (see below) now could compile to Android and works, I will try the next days with the different Cordova plugins.

I still had to change the two CreateFile() calls in my big app, CreateFile() still no longer accepts a callback?
But my ReadFile() calls were not thrown as errors, so I didn't change them, ReadFile() still needs a callback, and there in the docs it is not written as "not mandatory"?
Cause looking in the docs, OpenFile() also accepts a callback, but there it is not mandatory if not #PB_File_Streaming?
Is this inconsistency wanted?

At the moment I'm only using #PB_LocalStorage with CreateFile and ReadFile, but I would be really interested in #PB_LocalFile when reading and writing would work in background without any FileRequester(), here I wouldn't see problems without callback (as I don't need streaming and files are small).

Not to say I would be happy if reading and writing of my config data could be done in a more classic PB way without callbacks.

And just another hint: in the docs for OpenFile() there is also written
Open an existing file for read and write operations.
but then
Filename$ The name of the file to read.
but there is no example for writing?
Post Reply