Search   Feed   Browse   Add
Feed items 11 - 16 of 16 for August 2008

Best Practice Makes Perfect | Comments

A collaboration with Domino developers about how to do it and how to get it right in Domino

callbacks in LotusScript - August 6, 2008

I don't know of any foolproof way to get this at compile time either -- without support for interface, delegate, etc.One thing you can to to provide a little bit of compile time type-safety is start with an unimplemented base class that you treat as though it is an interface:Class FNMBaseFunction Mangle(fname$, Byval row%) as stringError 9999, "Mangle not implemented!"End FunctionEnd ClassClass FNMDefault as FNMBase ....Changing your parameters to accept type FNMBase then allows them to receive.
http://www-10.lotus.com/ldd/bpmpblog.nsf/dx/ools-callbacks-in-lotusscript?opendocument&...

OOLS: callbacks in LotusScript - August 6, 2008

No, this is one of those places where we're really stuck.I'd love to see functions as first-class objects in LS, but that just do happens to be one of the hardest things to program into any compilerinterpreter. At this point, I'm pretty sure that IBM would just rather use javascript for things, where it's already baked in, or Java, where you can do the interface and abstract method things.
http://www-10.lotus.com/ldd/bpmpblog.nsf/dx/ools-callbacks-in-lotusscript?opendocument&...

OOLS: callbacks in LotusScript - thats easy - August 6, 2008

IBM should extend the Lotusscript compiler and editor. For example you could add code assist for user-defined Lotusscript classes like in the "modern" IDEs... Eclipse, you know ;-))
http://www-10.lotus.com/ldd/bpmpblog.nsf/dx/ools-callbacks-in-lotusscript?opendocument&...

Querypaste, a popular misconception - August 6, 2008

For the copy and paste crowd:Sub Querypaste(Source As Notesuiview, Continue As Variant)'HARD CODE ALERT!' grab the clipboard as a database object Dim dbToCheck As NotesDatabaseSet dbToCheck = New NotesDatabase("", "clipbrd.ncf")' if the db is not present - make genericIf Not (dbToCheck.IsOpen) ThenvarQuery = Messagebox _("Are you sure you wish to duplicate these documents", _4 + 32 + 0, _"Paste operation")Else' specific message regards copypasteDim intDocCount As IntegerintDocCount =...
http://www-10.lotus.com/ldd/bpmpblog.nsf/dx/querypaste-misconception?opendocument&comm...

Do you sign at the top - August 6, 2008

Hello,Thank you for sharing this code example. Maybe you have a bug in your blog software. The last line of your posting shows: "Andre Guirard 12 March 2007 10:45:00 AM ET Plymouth, MN, USA Comments (2)" I count 4 comments without mine. My true reason for my comment is a question. How I can append text after the table...Call rtnav.FindNextElement(RTELEM_TYPE_TABLECELL)Call rti.BeginInsert(rtnav)Call rti.AppendText("Time Savings (hrs)")Call rti.EndInsertrti.appendText("This is a Test") does...
http://www-10.lotus.com/ldd/bpmpblog.nsf/dx/sign-at-the-top?opendocument&comments#06.0...

Callbacks - August 6, 2008

No, no explicit method of making the compiler understand his that I know of.You could take it to the extent of actually passing code in a string, and using 'evaluate' to execute that code (if it were formula) or execute (if it were lotusscript).Neither is recommended - I'd stick with the overriding-class model you outlined above.--- Bill
http://www-10.lotus.com/ldd/bpmpblog.nsf/dx/ools-callbacks-in-lotusscript?opendocument&...
Available Archives
- August (16 items)
- September (4 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact