Page 5 of 11
Posted: Fri Jan 16, 2009 10:19 pm
by blueznl
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
Posted: Thu Feb 19, 2009 6:08 pm
by ignign0kt
Awesome. Do you plan to add networking?
I hope you keep updating and adding, as this is probably the best tutorial source.
Posted: Tue May 19, 2009 8:17 am
by blueznl
ignign0kt wrote:
Awesome. Do you plan to add networking?
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 PureBasic

Posted: Tue May 19, 2009 8:21 am
by blueznl
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
Posted: Tue May 19, 2009 8:55 am
by djes
Greater and greater! Hope you have one (or 2 or 3!) backup of this gold mine. It has been so useful for me to understand some PB principles... Thank you again!
Posted: Sun May 24, 2009 8:06 pm
by blueznl
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
Posted: Mon May 25, 2009 3:33 pm
by GG
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).
Posted: Mon May 25, 2009 4:38 pm
by blueznl
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...
Posted: Mon May 25, 2009 4:53 pm
by cas
@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.
Posted: Mon May 25, 2009 4:54 pm
by blueznl
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.
I can give you my bank account number so you won't need words...

Posted: Mon May 25, 2009 4:55 pm
by cas
Posted: Tue May 26, 2009 12:04 pm
by yrreti

cas is right!
It's the first site I really looked into also.
And your guide has been a valuable source in
understanding how to use PureBasic.
But I especially appreciate your CodeCaddy
My sincere thanks to you too.
Posted: Tue May 26, 2009 3:07 pm
by blueznl
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.
Re: PureBasic Survival Guide - update
Posted: Sun Jun 07, 2009 2:09 pm
by PB
@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.
Re: PureBasic Survival Guide - update
Posted: Sun Jun 07, 2009 2:46 pm
by Demivec
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.
Please pardon my responding before blueznl does.
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
Furthermore there is no space set aside for a #null if you are using a fixed-string. If the length is 5 then space for 5 characters will be set aside and not space for 5 characters + #null. The #null is still stored in the memory space though if strings of less than 5 characters are stored there using the PureBasic functions.