Page 1 of 1
Remove selected line from a list field
Posted: Thu Jun 25, 2009 6:18 pm
by wake
Simple problem, but not having luck with a solution.
I am trying to remove the selected line from a list field.
Any help would be great.
Thanks in advance!
Posted: Thu Jun 25, 2009 6:35 pm
by Klaus
Hi Wake,
do this:
...
put the hilitedlines of fld "your list field" into line2Bdeleted
## Always a good idea to doublecheck!
if line2Bdeleted <> empty then
delete line line2Bdeleted of fld "your list field"
end if
...
See "hilitedlines" and "selectedtext" (in case you once need the text that is hilited

) in the docs.
Best from germany
Klaus
Posted: Thu Jun 25, 2009 6:42 pm
by wake
Klaus thanks so much! I will give this a try.
It is amazing how difficult it can be to think in terms of plain English when you have been coding in other languages for so long.
This seems like a pretty neat language though.
Edit:
This worked like a charm.
Thanks again!