hcl-bot
January 31, 2008, 10:22am
1
I think I may have found a mistake in the Designer 6.5.2 documentation under “Examples: @If ”
The last example has an @If with two conditions linked via an “&” I have code that is almost verbatim to that which throws me an error "Too Many Arguments For @Function : ‘)’ "
Here is the code I have:
@If ((OutageEndDate <> “”)&(OutageStartDate > OutageEndDate);
@Failure (“Please enter an Outage Start Date beginning before or equal to the Outage End Date.”;@Success )
Code from the help file:
@If ((contactMe=“Yes”) & (@ThisValue = “”);@Failure ("You must enter a value in " + @ThisName ;@Success )
Neither code snippet seems to work. What am I doing wrong?
hcl-bot
January 31, 2008, 10:34am
2
Subject: RE: Incorrect Too Many Arguments error?
@If ((contactMe=“Yes”) & (@ThisValue = “”);@Failure ("You must enter a value in " + @ThisName );@Success )
I have requested the help page be updated.
hcl-bot
January 31, 2008, 10:35am
3
Subject: Incorrect Too Many Arguments error?
imo you must close the bracket for @Failure , for example:@Failure ("You must enter a value in " + @ThisName )
hcl-bot
January 31, 2008, 10:44am
4
Subject: RE: Incorrect Too Many Arguments error?
Thanks for your help, you were right. That is an error in the documentation then.
Anyone know where a correction to the help file should be posted?