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
An specific text selection
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: An specific text selection
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
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
-
- Posts: 203
- Joined: Wed Jul 23, 2008 8:46 am
Re: An specific text selection
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
Alemrantareq,
just say where you already have the line number from the lineoffset.
or say
Or I dont understand what you want.
regards
Bernd
So you have the line number: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
just say
Code: Select all
select line x of field "xyz"
or say
Code: Select all
delete line x of field "xyz"
regards
Bernd