Adding text to scrolling list field

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
appmann
Posts: 33
Joined: Wed Oct 09, 2013 9:08 pm

Adding text to scrolling list field

Post by appmann » Mon Oct 21, 2013 8:25 am

Hi.

Im trying to add text to a scrolling list field.
I want to keep the text already in there, and insert the new after the last. Or in Alphabetic order?.

I have tryed the put into field. But it deletes the text and paste it to the first line.

I have tryed the Add command. But it says wrong code.

Maby it could be done by making the list field, list all cards from a stack, and just update after a Mouse Up event?

Any sugestions?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Adding text to scrolling list field

Post by Simon » Mon Oct 21, 2013 9:16 am

Hi appman,
You've answered your own question :)
I want to keep the text already in there, and insert the new after the last. Or in Alphabetic order?.
I have tryed the put into field.
Keywords there are "into" and "after".

Sorry if that answer seems a bit cryptic but I think you'll be happier if you figure it out by yourself.
If not then just say, I'll give my answer.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Adding text to scrolling list field

Post by jmburnod » Mon Oct 21, 2013 9:20 am

Hi appman,

Code: Select all

on mouseUp
   get fld 1
   put cr & "choice 6" after it
   sort it
   put it into fld 1
end mouseUp
Best regards
Jean-Marc
https://alternatic.ch

appmann
Posts: 33
Joined: Wed Oct 09, 2013 9:08 pm

Re: Adding text to scrolling list field

Post by appmann » Mon Oct 21, 2013 9:42 am

Thx to you both.

You helped a lot.

Post Reply