Author Topic: how to avoid auto line feed.  (Read 6012 times)

sparkythex

  • Newbie
  • *
  • Posts: 43
how to avoid auto line feed.
« 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?
« Last Edit: January 01, 1970, 01:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 461
  • Here to help you
Re: how to avoid auto line feed.
« Reply #1 on: December 17, 2010, 10:22:10 AM »
Quote from: "sparkythex"
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:-

Code: [Select]
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:-

Code: [Select]
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
« Last Edit: January 01, 1970, 01:00:00 AM by Guest »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

 

anything