Welcome! Log In Create A New Profile

Advanced

If expr IN problem

Posted by BLS 
BLS
If expr IN problem
February 18, 2009 09:34PM
Hi,
x is int = 64
whitespace is boolean = x _IN_ Asc(" "),TAB,CR ? True ELSE False

what the heck is wrong with this code.. Using WD11

Try to figure it out since 30 minutes...nagged .(
TIA, Bjoern
Piet van Zanten
Re: If expr IN problem
February 18, 2009 09:47PM
Hi Bjoern,

You forgot parentheses around the list of arguments:
bWhitespace is boolean = x _IN_ (Asc(" "),TAB,CR)? True ELSE False

Regards,
Piet
BLS
Re: If expr IN problem
February 18, 2009 10:28PM
Quote
Piet van Zanten
Hi Bjoern,

You forgot parentheses around the list of arguments:
bWhitespace is boolean = x _IN_ (Asc(" "),TAB,CR)? True ELSE False

Regards,
Piet

Jeez, works fine, thanks Piet.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: