After installing FP4 on Windows 64 and Linux 64 there are errors showing (printing to output - in this case html) long strings. I need to investigate a little bit more, as it can be the length of a string variable in LotusScript or the function replace which we use in that type of scripts. Has anybody else problems with FP4? We are back to FP3 an everything is working fine again. All function do have an “on error” statement, but there is no error message in the logs.
Subject: Answer
Comment out the print statement.
’ Print header1 & header2 & header3 & header4 & header5
Subject: Can you provide an example?
Can you post a short code snippet illustrating the problem?
Subject: Snippet
Function a_Header(title As String, back As Boolean, jscript As Boolean) As Boolean
…
meta_key = meta_key & |, | & ProfileDoc.RVP_Keywords(0)
meta_key = Replace(meta_key,“,”,“,”)
If Left(meta_key,2) = “, " Then meta_key = Mid$(meta_key,3)
If Not StrNA = “” Then
meta_key = Replace(strNA,” “,”, “) & “, " & meta_key
End If
meta_key = Replace(meta_key,”/”,“, “)
meta_key = Replace(meta_key,” , “,”, “)
meta_key = Replace(meta_key,”, “,”, “)
meta_key = Replace(meta_key,”,”,“,”)
meta_key = Replace(meta_key,“, ,”,“,”)
header1 = header1 & lf & |[meta lang=“de” name=“keywords” content=“| & meta_key & |” /]|
…
Print header1 & header2 & header3 & header4 & header5
…
end function
Options are Public and Declare
This code worked for years with all previous version of Domino. I did a short test and is figured out that if I do a header1 = header1 & lf & |[meta lang=“de” name=“keywords” content=“| & left(meta_key,500) & |” /]| it worked… but we need all information.
We have the same problem with another script putting all html content in a string and then do a printout at the end. Lots of information is missing (cut-off).
Subject: What is the length of the longest string you can print?
And is it consistently that length or variable?
Subject: We’re looking into this
We’re investigating this, Frank. Thanks for the info.
Subject: Can you provide the actual strings?
Can you post the actual strings used (header1, header2, header3, header4, and header5)? For header1, please send both the version of that string that works and the one that doesn’t. I can reproduce the print statement truncating a long string, but it is truncating at the same point on FP3 and FP4, so that can’t be what you are describing.