HyperNext Studio
HyperNext Studio => Interface Controls => Topic started by: sparkythex on December 17, 2010, 06:15:30 AM
-
I was wondering about how to remove or skip the auto line feed when combining several field text.
My field boxes can be of random text lengths.
I have a 2 field boxes that i want to take the text from put in to another field box.
i read that each field is handled as:
"some text"+ cr
example:
instead of:
text1
text2
i want:
text1 text2
So wondering how to deal with doing that?
or can it be?
-
I was wondering about how to remove or skip the auto line feed when combining several field text.
My field boxes can be of random text lengths.
I have a 2 field boxes that i want to take the text from put in to another field box.
i read that each field is handled as:
"some text"+ cr
example:
instead of:
text1
text2
i want:
text1 text2
So wondering how to deal with doing that?
or can it be?
I assume you mean combine each line from both fields to make a new line in another field.
If so, just use the Append command:-
local n,newline,temp
@ do nth line
Put line n of field 1 into newline
Put line n of field 2 into temp
Append temp onto newline
Put newline after field 3
if your fields contain large amounts of text then it is more efficient to put your newlines into a result variable and only put the finished result into your field 3:-
local result,n,newline,temp,result
Clear result
@ do nth line
Put line n of field 1 into newline
Put line n of field 2 into temp
Append temp onto result
....
Put result into field 3