I **KNOW** I am going to hate this when I start using collections
etc.
B vs b
ARGH!
:)
On Fri, 27 Apr 2018 21:39:46 +, Julio Carneiro via 4D_Tech wrote:
>
> The collection member function is ‘orderBy’, capital B. That’s why you get
> a runtime error, because ‘orderby’ does not exist.
Thanks Jeff and Julio. Funny, I thought I’d double-checked case, but apparently
not well enough! As soon as I changed it from “orderby” to “orderBy” it started
working.
BTW, I finally turned on object notation in my database and have started using
object notation as well as collections directly
Cannon,
If the statement in your code reads exactly as you posted then the error is
in v16r6 syntax checker :-)
The collection member function is ‘orderBy’, capital B. That’s why you get
a runtime error, because ‘orderby’ does not exist.
At this point 4D does not manage class typing properly, so
Yep - you're right. I was thinking of the other syntax that uses a constant.
Does the debugger give you any clues if you trace it?
--
Jeffrey Kain
jeffrey.k...@gmail.com
> On Apr 27, 2018, at 5:26 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
>
> Yeah, the ending quote must
Hi Jeff,
Yeah, the ending quote must have been converted by my mail app. It’s a proper
quote in code.
I _think_ the asc should be inside the double quotes. But I’m just going by the
examples found at:
http://doc.4d.com/4Dv16R6/4D/16-R6/collectionorderBy.301-3690504.en.html.
I don’t r
Well, you have a curly quote in that line of code - maybe that's just a mail
artifact?
Should the asc be inside the double quotes?
--
Jeffrey Kain
jeffrey.k...@gmail.com
> On Apr 27, 2018, at 5:10 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
>
> Has anyone else gotten orde
I’m having trouble with the collection.orderBy() command working. Not sure if
it is me or a bug. I’m using 4D v16r6, 64-bit, on macOS with this line of code:
$cSortedFrames:=$oPage.frames.orderby("position.zIndex asc”)
In the method editor everything colors correctly, including “or
7 matches
Mail list logo