Forums

This topic is locked

Conditional Region - Field Length?

Posted 18 Apr 2002 16:10:24
1
has voted
18 Apr 2002 16:10:24 No more Newsletters posted:
How can I create a conditional region based on field length (i.e. if field X has fewer than Y characters, a message is displayed)? I've tried a number of variations of the LEN and CHAR LEN statements but I can't get it to work.



Replies

Replied 18 Apr 2002 22:40:07
18 Apr 2002 22:40:07 Viktor Farcic replied:
<%
If (Len(X) > 20) Then
...
Else
...
End If
%>

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
How can I create a conditional region based on field length (i.e. if field X has fewer than Y characters, a message is displayed)? I've tried a number of variations of the LEN and CHAR LEN statements but I can't get it to work.




<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Viktor Farcic

TalkZone Manager
Replied 19 Apr 2002 17:08:03
19 Apr 2002 17:08:03 No more Newsletters replied:
Thanks! It worked perfectly.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
&lt;%
If (Len(X) &gt; 20) Then
...
Else
...
End If
%&gt;

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
How can I create a conditional region based on field length (i.e. if field X has fewer than Y characters, a message is displayed)? I've tried a number of variations of the LEN and CHAR LEN statements but I can't get it to work.




<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Viktor Farcic

TalkZone Manager
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic