Page 1 of 1

Seeking Information about TabTable.pbi

Posted: Sun Nov 21, 2021 5:43 pm
by davebar
I had a reasonably free day, so I took the opportunity to check and tidy up some of my PB code examples. In the process I came across an include file named TabTable.pbi The file contains very few clues or comments, other than this:

Code: Select all

;|__________________________________________________________________________
;| Title: Tab-Separated Tables
;| File: TabTable.pbi
;| Date: 26.07.2008
;| Content: * Procedures for reading a file from From a tab separated table
;|__________________________________________________________________________
Obviously I can work back and figure out how the original author designed it to be used, but I thought I would check in here to ask if anyone recognized this file or it's origin.
Regards
Dave

Re: Seeking Information about TabTable.pbi

Posted: Mon Nov 22, 2021 2:47 pm
by blueb
Looks like it's source was created by 'Unionbytes' from the German forum.

Here's the post... the hyperlinks are still active.

viewtopic.php?p=361979#p361979

Re: Seeking Information about TabTable.pbi

Posted: Mon Nov 22, 2021 4:33 pm
by Tenaja
I always (ok, 90 percent of the time) put a link to the forum page where I get code like that. It makes updating, etc, easier.

Re: Seeking Information about TabTable.pbi

Posted: Tue Nov 23, 2021 3:13 pm
by davebar
Tenaja wrote: Mon Nov 22, 2021 4:33 pm I always (ok, 90 percent of the time) put a link to the forum page where I get code like that. It makes updating, etc, easier.
For many years it has been my standard practice to comment with a link back to the source, but this one goes back to the days when I first started checking out PB and long before I started sensibly cataloging code examples.

Re: Seeking Information about TabTable.pbi

Posted: Tue Nov 23, 2021 3:17 pm
by davebar
blueb wrote: Mon Nov 22, 2021 2:47 pm Looks like it's source was created by 'Unionbytes' from the German forum.

Here's the post... the hyperlinks are still active.

viewtopic.php?p=361979#p361979
Thanks for reminding me where I originally got this example from.
It's really old code and the TableGadget.pb doesn't compile under PB 5.73, generating an error in the include file. The code has a lot of complex pointers, memory poking & peeking and since I don't know if it will be of any real use to me I might put this on the back burner for when I fancy some mental gymnastics :lol:

Re: Seeking Information about TabTable.pbi

Posted: Tue Nov 23, 2021 7:35 pm
by STARGĂ…TE
This code was written by me in 2008 and is definitely outdated!
!Please do not use this code!
It uses old PB-functions like CountList(), it uses an old hack to receive the size of an array, it is only working in x86, only for ascii, and it is not thread safe!

If you need a way to read a tab-separated table into an 2D array in Pure Basic, I can write a new include here.