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:
Inline JPEG image
but using the direct access to the array elements in the Titles_Old field would save one line and greatly simplify another, thus:
Inline JPEG image
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