Gamestudio Links
Zorro Links
Newest Posts
Any Old Timers Still Around?
by pyramide. 08/24/19 18:23
Script filename
by MatPed. 08/24/19 17:18
Oanda FIFO issue?
by AndrewAMD. 08/24/19 12:10
IG plugin initial release
by Dalla. 08/24/19 06:06
Tutorial for Vector Graphics
by Dooley. 08/23/19 22:32
Issue with dataParse function
by byakuren81. 08/23/19 21:57
Multiplayer subscription
by Truth. 08/23/19 20:08
candle pattern on weekly bars
by AndrewAMD. 08/23/19 13:20
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
8 registered members (pyramide, 3run, AndrewAMD, MatPed, byakuren81, Realspawn, 2 invisible), 644 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Ysbail, trader4321, GorgonzolaBYTE, Southqvist, tawin
18272 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Processing TEXT* pstring array #476975
04/29/19 16:09
04/29/19 16:09
Joined: Sep 2009
Posts: 926
Aku_Aku Offline OP
Aku_Aku  Offline OP

Joined: Sep 2009
Posts: 926
A TEXT* can contain more than one string, for example 8 pieces.
The documentation writes this about the stored strings:
STRING*	*pstring;	// pointer to array of string pointers

The txt_load function is able to fill such TEXT with series of strings, and only one TEXT will be filled.
How can i process each of the strings in a loop?

Or i misunderstood something, and there is only one string that is delimited inside with CR+LF characters?

I investigated more this situation. It turned out there is really only one string that is delimited inside with CR+LF characters. So, maybe i will delete this post.
This is more complex than i thought. Especially when changed from UTF-8 to UTF-16 LE.
OK, i stop now.

Last edited by Aku_Aku; 04/29/19 17:29.
Re: Processing TEXT* pstring array [Re: Aku_Aku] #476978
04/29/19 22:05
04/29/19 22:05
Joined: Oct 2008
Posts: 658
Ayumi Offline
Ayumi  Offline

Joined: Oct 2008
Posts: 658
The strings are assigned automatically, also the delimiting by file_str_read.
You just need to set the count of strings.

(count of lines = count of stings)

TEXT* txt = txt_create(...,countOfLinesInTextFile);

Last edited by Ayumi; 04/29/19 22:12.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at)

Powered by UBB.threads™ PHP Forum Software 7.7.1