If I understand what you¹re asking, I think you want the hilitedLines (or hilitedLine) property.
set the hilitedLines of field ³myList" to 3 -- hilite the 3rd line Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 3/15/15, 3:50 PM, "Keith Clarke" <[email protected]> wrote: >Folks, >I¹m using the selected lines of a list field as a simple filter. However, >when I navigate from the card & return, the selected lines are forgotten >- so the filter has to be reset manually. > >So, I¹ve added a script to trap the selections & save to stack-level >custom properties, so they¹re available on cardOpen... > >on mouseUp > put the selectedText of me into tScheduleFieldSelected > set the ScheduleFieldSelected of this stack to tScheduleFieldSelected >end mouseUp > > but I¹m struggling with errors on the openCard script to set the >selected lines... > >on openCard > // Set the Extract folder > > // Get the CSV files into memory > > // Get Selected Field > put the ScheduleFieldSelected of this stack into tScheduleFieldSelected > > repeat for each line tField in field ScheduleFields > if tField is among the lines of tScheduleFieldSelected then >highlight tField > end repeat >end openCard > >LiveCode errors with ...(Handler: can't find handler) near ³highlight²... > >Is this a simple syntax issue or is it not possible to select / highlight >list field lines via code? I can¹t find anything in the documentation or >Google on forcing selection in lists. >Thanks & regards, >Keith.. >_______________________________________________ >use-livecode mailing list >[email protected] >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
