i am trying to work out how to use a scrolling field list
i have 2 types of questions (as usual)
1)
i have 2 scrolling lists one has a list of things, and i want to press a button that (what ever is highligted) will transfer to the othe scroll list field
2)
i have 4 scroll list fields, and i want to press a button, and what ever is highlighted in all 4 scroll lists is transfered to another field.
i have tried many many scripts, but just cant seem to find the right combination to do number 1 question.
cheers
scrolling field list
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
For your first question, this should get you started.
Which should give you a pretty clear idea of what to do when you have 4 source fields 
HTH,
Jan Schenkel.
Code: Select all
on mouseUp
-- fetch the linenumber of the hilited lines of the source field
put the hilitedLines of field "Source" into tHilitedLines
repeat for each item tHilitedine in tHilitedLines
-- append it to our result list
put line tHilitedLine of field "Source" & return after tResult
end repeat
-- get rid o the trailing 'return' character before updating the target field
delete char -1 of tResult
put tResult into field "Target"
end mouseUp

HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com