PureBasic Survival Guide
Update.
Added Fred's corrections, as well as some additional stuff on Linked Lists, plus some other changes that I forgot
As usual...
http://www.xs4all.nl/~bluez/datatalk/purebasic.htm
Added Fred's corrections, as well as some additional stuff on Linked Lists, plus some other changes that I forgot
As usual...
http://www.xs4all.nl/~bluez/datatalk/purebasic.htm
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Actually, yes. I'm doing a little move sideways exploring VirtualBox, but only to help wannabe programmers to test there software in server / client configurations, and to explore the real world of MySQL. But all in service of PureBasicignign0kt wrote: Awesome. Do you plan to add networking?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Update.
Added a page on VirtualBox. This in turn will help testing 'near real life' MySQL and some (tada ) network programming. Also added and / or updated a bunch of other things.
Still a lot to rewrite and double check. I guess PB4.31 or 4.40 is on the horizon so that will mean more rewrites. I just hope the PB devs will get the expression evaluation sorted out for good, the current situation is extremely annoying.
As usual...
http://www.xs4all.nl/~bluez/datatalk/purebasic.htm
And for the VirtualBox page...
http://www.xs4all.nl/~bluez/datatalk/pure13.htm#top
Added a page on VirtualBox. This in turn will help testing 'near real life' MySQL and some (tada ) network programming. Also added and / or updated a bunch of other things.
Still a lot to rewrite and double check. I guess PB4.31 or 4.40 is on the horizon so that will mean more rewrites. I just hope the PB devs will get the expression evaluation sorted out for good, the current situation is extremely annoying.
As usual...
http://www.xs4all.nl/~bluez/datatalk/purebasic.htm
And for the VirtualBox page...
http://www.xs4all.nl/~bluez/datatalk/pure13.htm#top
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Updated.
Added a placeholder for 'networking', and swapped the pages of 'virtualbox' and 'databases'.
Plan is now to add more to the databases and networking pages now I have VirtualBox up and running properly.
Will be continued.
http://www.xs4all.nl/~bluez/datatalk/purebasic.htm
Added a placeholder for 'networking', and swapped the pages of 'virtualbox' and 'databases'.
Plan is now to add more to the databases and networking pages now I have VirtualBox up and running properly.
Will be continued.
http://www.xs4all.nl/~bluez/datatalk/purebasic.htm
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Nice work.
Is it possible to remove hyperlinks which are obsolete ? For example >> here <<, where there are some obsolete links to cvs.purebasic.com (Purebasic CVS).
Is it possible to remove hyperlinks which are obsolete ? For example >> here <<, where there are some obsolete links to cvs.purebasic.com (Purebasic CVS).
Purebasic 6.04 64 bits - Windows 11 Pro 64 bits 23H2
I use a link checker, but appearently it doesn't catch all of them. That's the problem of writing stuff that link to other pages... references might disappear, unfortunately.
I'll try to find them and correct them, but your (the reader's ) help is required
If you find stuff missing or links no longer working tell me, I simply don't have the time to guard them, as I keep adding things to the Survival Guide...
I'll try to find them and correct them, but your (the reader's ) help is required
If you find stuff missing or links no longer working tell me, I simply don't have the time to guard them, as I keep adding things to the Survival Guide...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
I can give you my bank account number so you won't need words...cas wrote:@blueznl
This guide was the first thing i studied when i heard about PureBasic and i recommend it to everyone new here. There are no words to describe your contribution to PureBasic community. Thank you.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
CodeCaddy is now working under 4.30, but I've found some possibile limitations on Unicode compatibility, once I've fixed those I'll release a new version. Note that CodeSync will also work properly again in the next to come version.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: PureBasic Survival Guide - update
@blueznl: I was just looking through your guide and it says that fixed-length
strings can contain null characters. It also says: "[...] strings cannot contain
a null character (asci code 0). If they contain a zero, they will be truncated!
If you are in a habit of using strings as buffers for binary content (that could
contain one or more zero's) you will have to use so called 'fixed length
strings' [...]"
Can you clarify this? I just tried a${5}="12"+Chr(0)+"45" and a$="12" only.
strings can contain null characters. It also says: "[...] strings cannot contain
a null character (asci code 0). If they contain a zero, they will be truncated!
If you are in a habit of using strings as buffers for binary content (that could
contain one or more zero's) you will have to use so called 'fixed length
strings' [...]"
Can you clarify this? I just tried a${5}="12"+Chr(0)+"45" and a$="12" only.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
Re: PureBasic Survival Guide - update
Please pardon my responding before blueznl does.PB wrote:@blueznl: I was just looking through your guide and it says that fixed-length
strings can contain null characters. It also says: "[...] strings cannot contain
a null character (asci code 0). If they contain a zero, they will be truncated!
If you are in a habit of using strings as buffers for binary content (that could
contain one or more zero's) you will have to use so called 'fixed length
strings' [...]"
Can you clarify this? I just tried a${5}="12"+Chr(0)+"45" and a$="12" only.
I think what is meant is that since a fixed length string occupies a certain range in memory, regardless of the contents of that memory, the string can contain nulls. All of PB's string functions such as the assignment operator above will stop when a null is reached. Here's some sample code to demonstrate:
Code: Select all
a${5}
PokeL(@a$,$34003231) ;this places the values for "12", #null,"4" into the strings memory
Debug a$ ;shows "12" because of the #null
PokeB(@a$ + 2,$33) ;this replaces the #null with "3"
Debug a$ ;shows "1234" because the intervening #null has been removed