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
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 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
Read / Change number of strings in a TEXT #207921
05/23/08 09:55
05/23/08 09:55
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hi, is there a posibility to read / change the number of strings in a TEXT?

Re: Read / Change number of strings in a TEXT [Re: PadMalcom] #207928
05/23/08 11:09
05/23/08 11:09

M
mercuryus
Unregistered
mercuryus
Unregistered
M



You can "read" the number of strings but can't change the predefined number of strings without creating a new TEXT (txt_create(...))

To read the number of predefines strings use: [TEXT].strings (where [TEXT] is the TEXT-Object)

To read the used number of strings you have to loop over all strings and get the last with str_len > 0

To change the number of strings you have to create a new TEXT-object, copy the content of the "old" to the "new" and remove the "old" TEXT-object.

mercuryus

Re: Read / Change number of strings in a TEXT [Re: ] #207936
05/23/08 11:43
05/23/08 11:43
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Thanks for your answer!

Another 2-Do for the GS-team wink


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) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1