Regexes are wonderful. There’s a learning curve, and they are very cryptical to be able to read, let alone write, but once you get the hang of it they are wonderful. I was doing some refactoring and I wanted to see all instances of a function called ‘AddButton’ – and my results got saturated with … Read more Powerful searches in DDE: Regex for ‘all bar that don’t start with foo’
It’s been one of my principles since I started being an independent developer. Much of my work is maintaining old codebases, and there are many horror stories that I could recount. The temptation is there to do a quick-and-dirty modification, a quick patch, but one should resist the temptation. Customers generally do not understand the … Read more Leave Code in the state you would like to find it in.
Every now and then, on my searches in the interwebs, I find a comment or an answer by Tim or Jens, and different emotions hit me: There is a moment of shock, a ‘speaking from the dead’ frisson, then sadness at their deaths, and then, also, gratitude and a sense of wonder that they are … Read more Finding comments from Tim or Jens in forums and blogs
There are two syntaxes to call OLE objects, one is using := like this: Set myRange = ActiveDocument.Content myRange.Find.Execute FindText:=”hi”, ReplaceWith:=”hello”, Replace:=wdReplaceAll Unfortunately LotusScript does not know how to deal with this, so you have to list the arguments exhaustively and in their correct order, including arguments which one does not really need. Usually I … Read more calling Word’s Find and Replace using LotusScript
This took some time (OK, it took me day and it was painful), so here are some hints : If you have uploaded the updatesite-runtime.nsf from openntf.org, you MUST sign all the plugins (Actions/Sign all). In order for the Web preview to work, you will need to manually copy the plugin and feature files found … Read more Installing OpenNTF Essentials with local web preview
A new version of the Notes RPC is now available for download. Have a look here: Lars Bentrop-Bos contacted me last week with a couple of bugs he had found in the application. Since I was already updating things, I made a large release, with many small improvements that I had been thinking of: New … Read more Notes Client Performance optimization with Notes RPC Parser: new Version 1.0.13 available
Buried deep inside neterr.h is this gem of a table: /* Strings which are the names of the various NSF/NIF transactions. Used to display them for debugging (CLIENT_CLOCK). */ #define STR_GET_MULT_NOTE_INFO_UNID_RQST PKG_NETWORK+144 stringtext(STR_GET_MULT_NOTE_INFO_UNID_RQST,”GET_MULT_NOTE_INFO_BY_UNID”) #define STR_ASYNC_NIFOPENNOTE_RQST PKG_NETWORK+145 stringtext(STR_ASYNC_NIFOPENNOTE_RQST, “ASYNC_NIF_OPEN_NOTE”) #define STR_ASYNC_READ_ENTRIES_RQST PKG_NETWORK+146 stringtext(STR_ASYNC_READ_ENTRIES_RQST, “ASYNC_READ_ENTRIES”) #define STR_ASYNC_CANCEL_RQST PKG_NETWORK+147 stringtext(STR_ASYNC_CANCEL_RQST, “ASYNC_CANCEL”) #define STR_ASYNC_OPEN_NOTE_RQST PKG_NETWORK+148 stringtext(STR_ASYNC_OPEN_NOTE_RQST, “ASYNC_OPEN_NOTE”) #define STR_ASYNC_READ_OBJECT_RQST … Read more NSF/NIF transactions : Names which appear in the Debug_Outfile.
I am a big fan of Mikkel Heisterberg’s lsdoc.org for automatic help-page generation for LotusScript code. If you are not familiar with lsdoc.org, it’s similar to javadoc, but for LotusScript. Ever since the advent of Code Templates, I’ve been using lsdoc-compatible syntax for my comments, and I wanted to share it with you here: Comment … Read more LotusScript Comment Templates for lsdoc.org (aka LotusScript.doc, aka Javadoc for LotusScript)