Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Needs Review
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Jun 7, 2024

StrRightBack ,StrLeftback etc. should always return a string

PROBLEM:
In an import method I had to detect that the combination of StrLeftBack(StrRightBack( HTMLrow$,"<") ,">") returned not, as expeted, an empty string "" but Empty.
I had to write a test for each HTML value wether it IsEmpty or not.

REASON:
This is counterintuitive and a cause for a good chance to get unexpected errors. In your help about Empty (DECS) is specifically written that :
"In Domino® Enterprise Connection Services (DECS) and in HCL Enterprise Integrator (HEI), empty data in a Notes® rich text or Text field is not set to NULL when it is transferred. It is transferred as "". To set empty data to NULL requires that you write a LotusScript® routine or a stored procedure. "
Thats exactly the opposite case. Thus I think the general line in LS is to return an emtpy String and not Empty.

SOLUTION:

Please ensure that StrLeft,Strright,StrLeftBack and StrRightBack can not return Empty as value but a string "", as all other string functions in LS do, if the result string is empty.


  • Attach files