My bad. I had read the docs wrong and thought that you get a 0 if not found
and 1 if found. If you think about it my reading does not make any sense.

So I changed it to >0  and it works fine.

Thanks

Dan

on 6/7/02 9:08 PM, Dan Stein at [EMAIL PROTECTED] wrote:

> Ben looks just like mine ( I left out the assign but I have it. Seems that
> it does not pick up the " " as a space but as empty. Not sure but It does
> not work did you try this?
> 
> When I do it resolves to address OK when of course it is not OK.
> 
> Dan
> 
> 
> on 6/7/02 7:49 PM, Ben Johansen at [EMAIL PROTECTED] wrote:
> 
>> <@assign testemail value="abc [EMAIL PROTECTED]" scope=local>
>> <@IF EXPR='<@Locate STR="@@testemail" FINDSTR=" "> > 0'>
>> Hey dude you can't use a space in an email address
>> <@ELSE>
>> address ok
>> </@IF>
>> 
>> 
>> Ben Johansen - http://www.pcforge.com
>> Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
>> Latest downloads & List Archives @ http://www.witango.ws
>> 
>> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]] On Behalf Of Dan Stein
>> Sent: Friday, June 07, 2002 4:02 PM
>> To: Multiple recipients of list witango-talk
>> Subject: Witango-Talk: <@Locate> Tag question
>> 
>> How can I use <@Locate> to find a space in a string.
>> 
>> I want something like
>> <@IF
>> EXPR='<@Locate STR="Email FINDTR=" ">=1'>
>> Hey dude you can't use a space in an email address
>> <@ELSE>
>> </@IF>
>> 
>> FINSTR=" " does not find space what can I use?
>> 

-- 
Dan Stein
Digital Software Solutions
799 Evergreen Circle
Telford PA 18969
Land: 215-799-0192
Mobile: 610-256-2843
FMP, WiTango, EDI,SQL 2000
[EMAIL PROTECTED]
www.dss-db.com


________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to