Page 1 of 1

Problem with the selectedline

Posted: Tue Mar 29, 2011 12:20 pm
by BIX
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.

Re: Problem with the selectedline

Posted: Tue Mar 29, 2011 12:38 pm
by Klaus
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

Re: Problem with the selectedline

Posted: Tue Mar 29, 2011 12:51 pm
by BIX
Thanks Klaus, i have read the documentation, but then again, i posted this pretty stupid question. Again, thanks man.

Re: Problem with the selectedline

Posted: Tue Mar 29, 2011 1:33 pm
by Klaus
:)