Ben Langhinrichs

Photograph of Ben Langhinrichs

IBM Champion logo

E-mail address - Ben Langhinrichs







Recent posts

Wed 13 Feb 2019

@MQRY and on-the-fly data retrieval



Mon 11 Feb 2019

Formula language in a JavaScript world: JSON db lookups



Thu 7 Feb 2019

Could working with rich text really be RESTful?


April, 2019
SMTWTFS
 01 02 03 04 05 06
07 08 09 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

Search the weblog





























Genii Weblog

Welcome, Carolyn - You have helped already

Thu 25 Mar 2004, 11:44 AM



by Ben Langhinrichs
Fellow Penumbra Group member Carolyn Kraut has started a blog, and the very first post I read helped me out.  Carolyn described in her post how, in ND6 and above, when you want to get the server or filepath from @DbName, you can now access the array elements directly, so @DbName[2] replaces @Substring(@DbName; -1).  Her mentioning this got me to thinking about the direct accessing of array elements, and I realized that my Interesting Challenge Redux post from a few days back could be simplified using this approach.  The code I had was:

but using the direct access to the array elements in the Titles_Old field would save one line and greatly simplify another, thus:

The temporary variable "titles" is no longer needed, and the messy

@Subset(@Subset(titles; n); -1)

is replaced by a tidy and more easily read

Titles_Old[n]

Thanks, Carolyn, and welcome to the Domino blogosphere!

Copyright © 2004 Genii Software Ltd.

What has been said:

No documents found