Thanks Peter. But I live in a very conservative county. None of yer fancy diagonals here. NW indeed!
Actually it is the County election database, and a search reveals only N, E, S, and W. I think I finally get the phrase "by .... of each". Live Code does pretty much what I did, except I'm sure they don't use a bubble sort. Jim > > Message: 2 > Date: Sat, 12 May 2012 12:22:38 -0400 > From: "Peter M. Brigham, MD" <[email protected]> > To: How to use LiveCode <[email protected]> > Subject: Re: Sort of a problem > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > If you have streets like "SW 34th St" you'll have a problem -- you should > probably adjust your pickStreet function: > > function pickStreet pName > if word 1 of pName is among the words of "N S E W NE NW SE SW" then > return word 2 to -1 of pName > end if > return pName > end pickStreet > > -- Peter > > Peter M. Brigham > [email protected] > http://home.comcast.net/~pmbrig _______________________________________________ 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
