Problem with the selectedline

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Problem with the selectedline

Post by BIX » Tue Mar 29, 2011 12:20 pm

Ok, so i have one scrolling list field and one button. The script of the button is:

Code: Select all

delete the selectedline of field "someField"
it returns an error, but if i use script:

Code: Select all

put the selectedline of field "someField" into selLine
delete selLine
it deletes the selected line but the problem is that it works only the first time i press the button, when i do it again it does nothing.
BIX

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problem with the selectedline

Post by Klaus » Tue Mar 29, 2011 12:38 pm

Hi BIX;

please look up everything in the docs (Dictionary) that does not work as you've exspected!
The docs aren't THAT BAD!

"the selectedline" returns something like: line X of field Y
So you must leave the: "... of fld "somefield" part!
...
delete the selectedline
## Should do!
...

Best

Klaus

BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Re: Problem with the selectedline

Post by BIX » Tue Mar 29, 2011 12:51 pm

Thanks Klaus, i have read the documentation, but then again, i posted this pretty stupid question. Again, thanks man.
BIX

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problem with the selectedline

Post by Klaus » Tue Mar 29, 2011 1:33 pm

:)

Post Reply