I have an app on a R5 server that I want to recopile script. All users have r6.0.2 cf2. Can I use the recompile all lotusscript tool in R6 designer?
Thanks
David
I have an app on a R5 server that I want to recopile script. All users have r6.0.2 cf2. Can I use the recompile all lotusscript tool in R6 designer?
Thanks
David
Subject: RE: Recompile All LotusScript and mixed environment.
If there are server agents running on the R5 server, I’m not certain they would work if compiled in Domino Designer 6. They well might, but you’re taking a chance.
Subject: They work just fine. (As long as no “New” R6 features…)
Subject: RE: They work just fine. (As long as no “New” R6 features…)
They probably will work fine. But I believe there are things you can do in LotusScript that can compile differently in 6. E.g. NotesDocument.Lock; in Notes 5 this refers to a document field named “Lock”, in 6 it’s a method, with two optional arguments. If the NotesDocument variable is declared, I believe the compiler will generate specific code for a call. If this is run in Notes 5, there’s no such method. So I’m thinking of something like:
Dim LockField As Variant
Dim doc As NotesDocument
…
LockField = doc.Lock
I’m not certain that the compiler will produce code here that specifically tries to call the Lock method (which would fail in R5 since there’s no such method). However, it doesn’t seem safe to assume either way.
There have been other changes to the language that might affect compilation. I can’t think of any other examples like Lock offhand, though.
Or, of course, if you have subroutines named Replace or Split or Join or …, they won’t compile at all since those are now system functions. But you’d notice that when you compiled.
Subject: RE: They work just fine. (As long as no “New” R6 features…)
I was recently bitten by the addition of Replace (see my blog about it). It would have been easy to catch if the code had been compiled in ND6, but caused a user much consternation when run from ND6 after being compiled in R5.
Subject: True. I can not think of anything else either.