Interchange the line
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Interchange the line
Hi All,
How to interchange the line. I have a text field when I give the input like "1-3" then first and third line should interchange.
Thanks
kevin
How to interchange the line. I have a text field when I give the input like "1-3" then first and third line should interchange.
Thanks
kevin
--
Thanks
Kevin
Thanks
Kevin
Re: Interchange the line
Hi Kevin,
OK, now you know how to "display second value in a variable ", so you can:
...
## Put lines to interchange into variables:
put line 1 of fld "interchange" into tLine1
put line 3 of fld "intercahnge" into tLine2
## And now simply "swap" the lines in the field:
put tLine2 into line 1 of fld "interchange"
put tLine1 into line 3 of fld "interchange"
...
Is that what you mean?
Best
Klaus
OK, now you know how to "display second value in a variable ", so you can:
...
## Put lines to interchange into variables:
put line 1 of fld "interchange" into tLine1
put line 3 of fld "intercahnge" into tLine2
## And now simply "swap" the lines in the field:
put tLine2 into line 1 of fld "interchange"
put tLine1 into line 3 of fld "interchange"
...
Is that what you mean?
Best
Klaus
Re: Interchange the line
Kevin
Klaus would feel gratified if you would write a handler that does what you asked:
Why is this not particularly suited to a function?
Craig Newman.
Klaus would feel gratified if you would write a handler that does what you asked:
Code: Select all
switchLines line1,line2
Craig Newman.
Re: Interchange the line
Would I? 

Re: Interchange the line
Klaus.
I was being presumptuous.
Craig.
I was being presumptuous.
Craig.
Re: Interchange the line
Thou shalt be forgiven!dunbarx wrote:Klaus.
I was being presumptuous.
Craig.
