Help with simple conditional?

Shane Gray shane at satsof.com.au
Wed Aug 15 21:06:51 PDT 2012


> -----Original Message-----
> From: filepro-list-bounces+fplist=satsof.com.au at lists.celestial.com
> [mailto:filepro-list-bounces+fplist=satsof.com.au at lists.celestial.com] On
> Behalf Of Fairlight
> Sent: Thursday, 16 August 2012 10:53 AM
> To: filepro-list at lists.celestial.com
> Subject: Re: Help with simple conditional?
> 
> Someone told me 'co' may not work in processing.  Okay, so I tried a
> different method that should work:
> 
> I've tried putting both the lookup value and the search value into ALLUP
> variables and checking for INSTR eq "0".
> 
> If: instr(SinUp,SinSearch) eq "0"
> Then: getnext sintest;goto loop
> 
> If I use that, and that -should- mean that the substring was not found,
get
> the next record and loop...it fails to work properly.  If I flip it to
> "ne", it always passes, if I leave it as "eq", it always fails.  It should
> succeed when there's a match, and it doesn't.
> 
> I've tried logging the values of SinUp, SinSearch, and INRes (INRes being
> the result of an instr(SinUp,SinSearch).  Here's what I get:
> 
> sinup: 35000 (SINGLE MIX) searchup: DARK inres: 0

Wouldn't be anything to do with using SinSearch instead of searchup?



More information about the Filepro-list mailing list