Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8751 > unrolled thread
| Started by | Mark <markjotika@gmail.com> |
|---|---|
| First post | 2015-11-29 09:16 -0800 |
| Last post | 2015-11-30 07:48 +1100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | Mark <markjotika@gmail.com> |
|---|---|
| Date | 2015-11-29 09:16 -0800 |
| Subject | Bbrowse Sorts |
| Message-ID | <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
[toc] | [next] | [standalone]
| From | "Craig Dawson" <craig_dawson@hotmail.com> |
|---|---|
| Date | 2015-11-30 07:48 +1100 |
| Message-ID | <n3fo7d$pf4$1@dont-email.me> |
| In reply to | #8751 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web