Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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: 265
Netherlands
G
Grant Online
Member
Grant  Online
Member
G

Joined: Aug 2017
Posts: 265
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: 265
Netherlands
G
Grant Online
Member
Grant  Online
Member
G

Joined: Aug 2017
Posts: 265
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