Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-05-2008, 01:14 AM
citect citect is online now
Registered User
 
Join Date: 11-13-2008
Posts: 30
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:
<Error at Line 1, Column 29 (Unterminated string constant)
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:
<Error at Line 1, Column 49 (Unterminated string constant)
Code: vbld_IIf(Len("Single line") > 0, "This is a test>

Please can you advice

thanks

Gilles
Reply With Quote
  #2  
Old 12-05-2008, 08:30 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
http://www.kinook.com/Forum/showthread.php?threadid=51
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 12:06 AM.


Copyright © 1999-2023 Kinook Software, Inc.