I don't think any of this makes sense.
The old considerations from back then (16-bit computers) are no longer relevant today.
When you read a text file, whether ASCII or UTF8, it is stored in memory as Unicode. So you can use the normal string functions.
Just my opinion.
You should show the higher-level problem.
Curious FILO behavior
Re: Curious FILO behavior
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
-
Randy Walker
- Addict

- Posts: 1109
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Curious FILO behavior
Readline() -- I Think you meant ReadString()SMaag wrote: Sat Dec 28, 2024 3:36 pm For seperating the Datasets delimited by 'CRLF' I would use the PureBasic command ReadLine()
what's doing this automatically. My normal way is to read all such Datasets into a Stringlist() and then
step trough all Datasets with ForEach()
I see what you did there. Trying to make me feel better by illustrating how your memory is not so perfect either. Well it worked
ReadString( is the perfect way to real an entire line, However for some unknown reason I chose to read byte by byte until i read the CRLF. The only explanation for that that I can think of is that GFA must not have had a ReadString() equivalent and I didn't know enough about PB when I ported the code over from GFA to adapt the code to use ReadString() instead.
For lack of experience in the beginning, I devised some very convoluted code design to read and prioritize records into an array for playback after a user search for troubleshooting records. It worked pretty well actually and at this point I have no clue how to re-evaluate that code. Just seems to me at this point it should be easier to find the glitch and fis it than to try to understand the overall code and do a re-wite which would actually be the best option, one which I'm not quite prepared to face.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: Curious FILO behavior
I work as a programmer in the industry. Mainly with PLC's.
Here I have seen programme sections (KOP, FUP) that go over several pages and are adapted several times.
After thinking about what the complex thing does, only a small part remained. Fits on one page at a time.
Sometimes it's worth going through it part by part.

Here I have seen programme sections (KOP, FUP) that go over several pages and are adapted several times.
After thinking about what the complex thing does, only a small part remained. Fits on one page at a time.
Sometimes it's worth going through it part by part.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
-
Randy Walker
- Addict

- Posts: 1109
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Curious FILO behavior
I've tried to look at it that way but I can't seem to make it from one part to the next without forgetting what it was I just figured out, if I can even figure it out to begin with. All I can do is keep hacking at it.mk-soft wrote: Sat Dec 28, 2024 11:45 pm I work as a programmer in the industry. Mainly with PLC's.
Here I have seen programme sections (KOP, FUP) that go over several pages and are adapted several times.
After thinking about what the complex thing does, only a small part remained. Fits on one page at a time.
Sometimes it's worth going through it part by part.
![]()
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: Curious FILO behavior
Do not give up.
I've been with the company for almost thirty years now and my colleague (boss) tells me that I'm not thirty years old any more, so everything takes a bit longer.
As a nerd, I managed two big projects at once and the small stuff on the side.
I've been with the company for almost thirty years now and my colleague (boss) tells me that I'm not thirty years old any more, so everything takes a bit longer.
As a nerd, I managed two big projects at once and the small stuff on the side.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
-
Randy Walker
- Addict

- Posts: 1109
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Curious FILO behavior
Yey, yep. Keep hacking at it. 
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
