no matches... anyone got a light?

Andre Garzia soapdog at mac.com
Fri Jul 7 11:48:35 EDT 2006


Scott,

I don't know why it is not working, but check the filter command...  
if you filter the var by a name, then, if the name is not there, it  
becomes empty, so you can simply filter and check for empty...

it might work, it's a hack, but it might just work for you!

Andre

On Jul 7, 2006, at 12:16 PM, Scott Morrow wrote:

> This seems a no-brainer but I've stalled.  I'm reading names from a  
> text file and then creating files based on these names.  I'd like  
> to check and see if the file already exists before creating a new  
> one.  The text files were created in BBEdit.  I unable to figure  
> out why I can't cause a match using my data.  I've looked at the  
> variables in the debugger and even run charToNum comparisons  
> ( everyone seems to be using the ascii 10 LF.)  But even though it  
> seem like it should match... it don't.
>
>
>  if tName is among the lines of tPreExisitingFiles then
>       -- never gets here
>  end if
>
> alternately I tried
>
> set the wholematches to true
> if lineOffset(tName,tPreExisitingFiles) <> 0 then
>       -- never gets here
> end if
>
> Anything else I should  check?
>
>
> -Scott Morrow
>
> Elementary Software
> (Now with 20% less chalk dust !)
> web     http://elementarysoftware.com/
> email   scott at elementarysoftware.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list