Monday, August 6, 2007

@Function Brain Cramp

When I first started developing applications for Lotus Notes (V3... Good times.) I used to spend my spare moments reading the list of @functions and commands in the help database. It was so helpful to have a good handle on what options where available and it was all new to me at the time. Over the years, I thought I had been doing a good job keeping up by reviewing all the "what's new" docs after each upgrade.

I got slapped (happily) by a simple one the other day. I was modifying a web app and needed to parse a query string parameter for a computed field. Refusing the write the same old @If, @Left @blah,blah,blah formula yet another time to complete this task, I set about finding an example to copy/paste. Much to my surprise, there has been a simple, one-line function to do just this since 6.0: @UrlQueryString( parameterName ). How much easier could it possibly be?

Consider this a public service announcement.

0 comments: