Posted Thu, 07 Nov 2019 15:48:56 GMT by Brian Osborn Applications Systems Analyst
I am trying to add a carriage return line feed control CrLf within an arithmetic expression.  It validates the syntax, but the desired output is not happening.   Any pointers would be greatly appreciated.  The control characters are discussed on page 4 of the Workfow Expression Parser document.

Brian O
Posted Thu, 07 Nov 2019 17:01:50 GMT by Tim Ohm
If that's just a straight VB statement....insert characters with ASCII codes - Chr(10) + Chr(13).  There is also a predefined vb variable - vbCrLf.  Not sure if DW will support either method.
Posted Thu, 07 Nov 2019 17:38:59 GMT by Phil Robson DocuWare Corporation Senior Director Client Services, Americas
That won't work. The Workflow Text field is a single line field. It does not accept multiple lines, therefore it will not recognize the code.



Phil Robson
Senior Director Client Services, Americas
 
Posted Thu, 07 Nov 2019 17:58:47 GMT by Brian Osborn Applications Systems Analyst

Hi Phil, I am actually using the 'Description' designation within the task which appears to have no trouble displaying wrapped lines of text.

Brian O

Posted Thu, 07 Nov 2019 18:11:12 GMT by Phil Robson DocuWare Corporation Senior Director Client Services, Americas
Ok. Yes, the description is multi-line.

Try these things:

1. Remove the brackets from around CrLF.
2. Try the control chars Chr(10) + Chr(13) instead of the code. But! Be careful. In VB "+" signs mean to add not to concatenate. Now I think we use a mix of C and VB so the plus signs are probably ok, but in VB I use an ampersand & for concatenation.
3. Try  newLine rather than CrLF.
4. Finally just for fun  if all else fails try vbNewLine.

Other than that I am not sure and it would need to be tested further.


Phil Robson
Senior Director Client Services, Americas


 
Posted Thu, 07 Nov 2019 18:49:37 GMT by Phil Robson DocuWare Corporation Senior Director Client Services, Americas
It does not work. I tried the code, the vb Constant and the ascii chars. Both directly in the text of the description and via a string variable.




Phil Robson
Senior Director Client Services, Americas
 

You must be signed in to post in this forum.