Sort of a problem

Jim Hurley jhurley0305 at sbcglobal.net
Sat May 12 23:17:21 EDT 2012


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" <pmbrig at gmail.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: Sort of a problem
> Message-ID: <50A823D6-005E-47DE-9A05-4B7BA094E693 at gmail.com>
> 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
> pmbrig at gmail.com
> http://home.comcast.net/~pmbrig





More information about the Use-livecode mailing list