evaluated string for filter doesn't work

Jim Ault JimAultWins at yahoo.com
Mon Jul 28 23:39:22 EDT 2008


You are adding quote chars to the filter string so that

quote &".jpg"&quote would have to actually be in the the line to be a 'hit'
Most file names do not contain quotes.

--  try 

filter tFiles with tFilter

or
filter tFiles with  ("*" & fld "extension")


or if you want to get more confused  -------

 put "music.jpg" into tFiles
  put "*.jpg" into tFilter
  get (" filter tFiles with " & quote & tFilter & quote)
  do " filter tFiles with " & quote & tFilter & quote
  put tFiles

---------------------------------
Jim Ault
Las Vegas

On 7/28/08 8:25 PM, "Sivakatirswami" <katir at hindu.org> wrote:

> Field "extension" contains ".jpg"
> 
> script has
> 
>    put ("*" & fld "extension") into tFilter
>    filter tFiles with (quote &tFilter & quote)
>    put tFiles into fld "Listing"
> 
> result "nada!"
> 
> Why?
> 
> filter tFiles with "*.jpg" works
> 
> and
> 
> put tFilter
> 
> returns 
> 
> *.jpg
> 
> I tried this too:
> 
>    put (quote & "*" & fld "extension" & quote) into tFilter
> filter tFiles with tFilter
>    put tFiles into fld "Listing"
> 
> still "nada"
> 
> ??
> 
> 
> 
> 
> _______________________________________________
> 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