Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8755

Re: Bbrowse Sorts

From "Craig Dawson" <craig_dawson@hotmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Bbrowse Sorts
Date 2015-11-30 07:48 +1100
Organization A noiseless patient Spider
Message-ID <n3fo7d$pf4$1@dont-email.me> (permalink)
References <9beb76ba-d6f2-4919-b5a5-1d021642dd58@googlegroups.com>

Show all headers | View raw


Hi Mark,

Maybe sort an array by description and then plug the sorted array into a 
bbrowser...

// Define a Structure - array...
auStruct := { {"Letter", "C", 1, 0}, {"Desc", "C", 20, 0} }
// Populate an Array with your data...
AAdd(aArray, {"A"}, {"Created"})
AAdd(aArray, {"B"}, {"Checked"})
AAdd(aArray, {"C"}, {"Authorised"})
AAdd(aArray, {"D"}, {"Billed"})

// sort the array
ASort(SELF:aArray,,,{|x,y| x[2] < y[2]})

// plug the array into your browser
SELF:oasServer := bArrayServer{auStruct, SELF:aArray, BAUTO}
SELF:MarksBbrowser:Use(SELF:oasServer)

Hope this helps,
Craig.


"Mark" <markjotika@gmail.com> wrote in message 
news:9beb76ba-d6f2-4919-b5a5-1d021642dd58@googlegroups.com...
>I have a list of status's in an array with 2 Elements
>
> A    - Created
>
> B    - Checked
>
> C    - Authorized
>
> D    - Billed
>
>
> The single letter is what i store in the database. Then when displaying in 
> a BBrowser i show the full description.
>
> As you can see if i do any sort it goes A , B , C , D
>
> Is there a way to make it sort by the full description instead this would 
> help when searching to.
>
> Mark 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bbrowse Sorts Mark <markjotika@gmail.com> - 2015-11-29 09:16 -0800
  Re: Bbrowse Sorts "Craig Dawson" <craig_dawson@hotmail.com> - 2015-11-30 07:48 +1100

csiph-web