Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 7th_zorro), 935 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Separate string into multiple lines [Re: tomna1993] #483552
06/14/21 09:45
06/14/21 09:45
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
It's not the most elegant solution, but you could try one of the following substring methods when your string has a fixed length,

https://www.programmingsimplified.com/c/source-code/c-substring

Re: Separate string into multiple lines [Re: jcl] #483562
06/15/21 09:51
06/15/21 09:51
Joined: Apr 2021
Posts: 41
Slovakia
T
tomna1993 Offline OP
Newbie
tomna1993  Offline OP
Newbie
T

Joined: Apr 2021
Posts: 41
Slovakia
You understand it right!

Grant: yeah, the problem is that the length is not fixed. I hoped this to be easier (like in C) but doesn't matter, I fight with it. That is the easiest part of the program, the debugging both visually and by values are more pain in the ass.

Thanks for both of your help and have a nice day!

Re: Separate string into multiple lines [Re: tomna1993] #483563
06/15/21 10:57
06/15/21 10:57
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Within Excel I use the LEN() and MID() functions for a similar scenario with non-fixed string lengths, but in your case I believe it would be much easier to work with an array.
Best of luck and have a nice day as well.

Re: Separate string into multiple lines [Re: Grant] #483567
06/16/21 12:42
06/16/21 12:42
Joined: Apr 2021
Posts: 41
Slovakia
T
tomna1993 Offline OP
Newbie
tomna1993  Offline OP
Newbie
T

Joined: Apr 2021
Posts: 41
Slovakia
Later on I will check your idea! Thanks!

Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1