[Bulk] Problem with Scrolling List Field

Bruce Lewis lewisbruce at rogers.com
Tue Aug 23 20:16:10 EDT 2005


David,

Note typo "ClickLiKe" in third line of script.

Try:

put word 2 of the ClickLine into tLineClicked
put word 4 of the ClickLine into tFldClicked


Then

delete line tLineClicked of fld tFldClicked

Regards,

Bruce


At 8:15 PM +0100 8/23/05, David Burgun wrote:
>Hi All,
>
>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:
>
>on mouseUp
>local myClickLine
>
>put the clickLike into myClickLine
>if myClickLine is not empty then
>   select myClickLine
>else
>   select empty
>end if
>end mouseUp
>
>
>Then on the delete button:
>
>on mouseUp
>local mySelectedLine
>
>put the selectedLine into mySelectedLine
>if mySelectedLine is not empty then
>    put theSelectedLine --Dump to message box
>    delete theSelectedLine
>    select empty
>else
>   beep
>end if
>end mouseUp
>
>
>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
>Dave
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
Bruce Lewis
Lewis & Collyer
160 John Street, Suite 401
Toronto, Ontario
Canada  M5V 2E5
(416) 598-4357
FAX (416) 598-1067
bruce at lewiscoll.com
nancy at lewiscoll.com
sandy at lewiscoll.com
joan at lewiscoll.com
eva at lewiscoll.com



More information about the use-livecode mailing list