…great, thanks Scott. I had tried setting the hilitedLines property on the field but that was throwing errors too. It turned out to be an error on the custom property setting end - as I was saving the selectedLines into the custom property (values) rather than hilitedLines (comma-delimited integers).
All good now :-) Best, Keith.. > On 15 Mar 2015, at 22:58, Scott Rossi <[email protected]> wrote: > > 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 _______________________________________________ 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
