New Message: Re: list sorting

webmaster at userland.com webmaster at userland.com
Fri Oct 26 01:31:37 PDT 2001


A new message was posted:

Address: http://frontier.userland.com/discuss/msgReader$9026

By: Dan Peters (dapeters at dallasnews.com)

Thomas,
Thanks -- that's what I was looking for.

I ended up using:

on listBuilderTester(path) {
 «path = "\\\\nas-tracker2\\ge\\datastore\\currentpages\\"
 local (workList = "");
 local (adr);
 on add (s) {
 workList = workList + s + cr};
 local (textAdr = ("raw_" + random (500, 9999) + clock.ticks()));
 new(tableType, @suites.pagetracker.diskbuilder.data.[textAdr]);
 fileloop (f in path) {
 if string.mid(file.filefrompath(f),1,1) != "." {
 if file.isfolder(f) {
 suites.pagetracker.diskbuilder.data.[textAdr].[file.fileFromPath(f)] = nil}}};
 for i = 1 to sizeOf(suites.pagetracker.diskbuilder.data.[textAdr]) {
 add (nameOf(suites.pagetracker.diskbuilder.data.[textAdr][i]))};
 delete (@suites.pagetracker.diskbuilder.data.[textAdr]);
 return (workList)}

This is a Manila site.. http://manila.userland.com/.





More information about the Frontier-Server mailing list