Scrolling list fields
Mark Smith
mark at maseurope.net
Wed Jul 6 22:11:45 EDT 2005
Well, if it's a once only, set-up kind of thing, there's no reason not
to simply type the numbers in as needed.
To do it by script,
on addNumbers
repeat with n = 1 to the number of lines in fld "schoolList"
put n & space before line n of fld "schoolList"
end repeat
end addNumbers
Assuming that they've subsequently been jumbled up, then
sort lines of fld "schoolList" numeric by word 1 of each
will sort them.
Or have I misunderstood the problem?
Mark
On 7 Jul 2005, at 02:42, CHARLES W SZASZ wrote:
> I am a Rev newbie. Two weeks ago I posted a message about creating an
> application that would
> calculate distance between schools using two scrolling list fields.
> The first scrolling list field is
> from a school and the second scrolling list field is to a school. It
> was suggested that I use
> custom properties. It was also suggested that the schools be numbered
> for each scrolling list
> field. For example School A would be 1, School B would be 2, etc. I
> have 80 schools and the
> distances for each of the schools to other schools. My question is how
> do I get the schools
> listed in numerical order or give them numbers in a scrolling list
> field?
>
> Charles Szasz
> Lead School Psychologist and Section 504 Coordinator
> Kanawha County Schools
> (304) 348-7770, Ext. 347
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list