Prev: bBrowser and displaying values
Next: DevShare
From: Geoff Schaller on 23 May 2010 22:23 I didn't read that into the question and still don't. However, if you are right then he needs to provide the algorithm to achieve this. Geoff "Stephen Quinn" <stevejqNO(a)bigpondSPAM.net.au> wrote in message news:SIiKn.26774$pv.10648(a)news-server.bigpond.net.au: > Geoff > > > > Why do you say this is a 'custom' sort? > > It's a custom sort wanted > > > > Isn't it just purely alphabetic? > > He wants the 'LEMS' order not the 'ELMS' order. > > CYA > Steve
From: Dave Francis on 24 May 2010 04:04 On 23 May, 18:48, Geoff Chambers <gchamber...(a)msn.com> wrote: > I have a table with values for a column can be: > Geoff, Do you mean something like... Function MySort(cByte) > 'L' > 'E' > 'M' > 'S' > > I would also like them to sort this way currently they sort in > alpabetical order' > > 'E' > 'L' > 'M' > 'S' > > Is their a function that would return the desired result
From: Dave Francis on 24 May 2010 04:11 Geoff, Let's try again... Function MySort(cByte) return StrZero( at2(cByte, "LEMS"), 2) then your index key would be MySort(TheFieldContainingLEMS) HTH Dave On 24 May, 09:04, Dave Francis <suilvenassocia...(a)googlemail.com> wrote: > On 23 May, 18:48, Geoff Chambers <gchamber...(a)msn.com> wrote:> I have a table with values for a column can be: > > Geoff, > > Do you mean something like... > > Function MySort(cByte) > > > 'L' > > 'E' > > 'M' > > 'S' > > > I would also like them to sort this way currently they sort in > > alpabetical order' > > > 'E' > > 'L' > > 'M' > > 'S' > > > Is their a function that would return the desired result > >
From: Mathias on 27 May 2010 03:16
On 23 Maj, 19:48, Geoff Chambers <gchamber...(a)msn.com> wrote: > I have a table with values for a column can be: > > 'L' > 'E' > 'M' > 'S' > > I would also like them to sort this way currently they sort in > alpabetical order' > > 'E' > 'L' > 'M' > 'S' > > Is their a function that would return the desired result Sort by At(MYFIELD,"ELMS") or if you want to avoid numerical indexes Chr(Asc("A") + At(MYFIELD,"LEMS")) or Str(At(MYFIELD,"LEMS"),1,0) /Mathias |