Problem with Scrolling List Field
dburgun at dsl.pipex.com
Tue Aug 23 14:15:47 CDT 2005
I have a Field that is setup as a scrolling list. I can add to the
list no problem. However I want to be able to let the user select a
single item in the list and then press a "delete" button to delete it.
This is the code I have, on the Field:
put the clickLike into myClickLine
if myClickLine is not empty then
Then on the delete button:
put the selectedLine into mySelectedLine
if mySelectedLine is not empty then
put theSelectedLine --Dump to message box
But when I run this, the first time I selected a line it *sometimes*
works but then it doesn't work from then on, e.g. it doesn't delete
the line, but the message box contains line and field number as
expected. If I manually type "delete line 1 of field 1" in the
message box, the line gets deleted as expected.
What am I doing wrong???
Thanks a lot
More information about the use-livecode