Splitting long elements into two lines in an Option Menu

Richmond richmondmathewson at gmail.com
Fri Apr 27 05:09:56 EDT 2018


I've just set up a stack containing 2 fields; one called "fff" 
containing your

original string, another called "fCHOPPED" that is a scrolling list field.

I have a button containing this script:

on mouseUp
    put fld "fff" into FFF
    set the itemDelimiter to ","
    put 1 into KOUNT
    repeat until item KOUNT of FFF is empty
       put item KOUNT of FFF into line KOUNT of fld "fCHOPPED"
       add 1 to KOUNT
    end repeat
end mouseUp

which puts the string into the scrolling list field like this:

/Dialyse rénale
  insuffisance rénale
  maladie rénaleDID
  diabète de type 1//
//diabète insulino dépendant/

Richmond.


On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote:
> /Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de 
> type 1//,//diabète insulino dépendant/ 





More information about the Use-livecode mailing list