Page 1 of 1

An specific text selection

Posted: Sat Feb 13, 2010 1:35 pm
by alemrantareq
I've a scrolling field with some texts, a option button and a normal button. I need to verify whether the selected item from option button matches with the texts of the field; and I successfully did that using lineoffset function. At first, I put the selected item into a global variable and then I use it to lineoffset function to verify the matches through the normal button script.

Now I want to select and delete the text in the field which matches with the selected item of option button, but I can't make the script. Someone pls help me to do that.........Thanks in advance

Re: An specific text selection

Posted: Mon Feb 15, 2010 12:18 pm
by bn
Hi alemrantareq,
from what I understand you have already everything in place to delete the line in the text field.
Once you have found the lineoffset in the textfield just say delete line xyz of field "myTextField".
Or is this not what you want?
regards
Bernd

Re: An specific text selection

Posted: Tue Feb 23, 2010 9:05 pm
by alemrantareq
Thanks Bernd for reply, I know how to delete the line but I don't know how to select the line that matches with the selection of option btn. :?

Re: An specific text selection

Posted: Thu Feb 25, 2010 1:55 pm
by bn
Alemrantareq,
alemrantareq wrote:I've a scrolling field with some texts, a option button and a normal button. I need to verify whether the selected item from option button matches with the texts of the field; and I successfully did that using lineoffset function. At first, I put the selected item into a global variable and then I use it to lineoffset function to verify the matches through the normal button script.

Now I want to select and delete the text in the field which matches with the selected item of option button, but I can't make the script. Someone pls help me to do that.........Thanks in advance
So you have the line number:
just say

Code: Select all

select line x of field "xyz"
where you already have the line number from the lineoffset.
or say

Code: Select all

delete line x of field "xyz"
Or I dont understand what you want.
regards
Bernd