Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Len in vbscript does not work in step properties (https://www.kinook.com/Forum/showthread.php?t=3874)

citect 12-05-2008 01:14 AM

Len in vbscript does not work in step properties
 
Hi

I 've got the following line in the "send Mail" step properties:
[vbld_IIf(Len("%Test%") > 0, "%Test%", "None")]

The macro "Test" as the following text(2 line):
"This is a test
I don t like CrLf"

I get the following error when I run the step:
Code: vbld_IIf(Len("This is a test>

I don t think that the issue is Len() but the macro expansion because if I replace the "test" macro with a single line(i.e [vbld_IIf(Len("Single line") > 0, "%Test%", "None")]) then I get the following error:
Code: vbld_IIf(Len("Single line") > 0, "This is a test>

Please can you advice

thanks

Gilles

kinook 12-05-2008 08:30 AM

http://www.kinook.com/Forum/showthread.php?threadid=51


All times are GMT -5. The time now is 07:50 AM.


Copyright © 1999-2023 Kinook Software, Inc.