Filtering FIle Types
JB
sundown at pacifier.com
Tue Sep 2 13:16:46 EDT 2014
Thank you.
Is there a regex that will work
with Revolution?
John Balgenorth
On Sep 2, 2014, at 8:18 AM, Peter Haworth <pete at lcsql.com> wrote:
> Thew new syntax for the filter command (don;t recall which version it was
> introduced but it works in 6.6.2) lets you filter with a regular
> expression, so the following will do it in one filter command, no need to
> repeat for each line:
>
> filter lines of tFiles with regex pattern ".*\.jpg|png"
>
> Just replace the "jpg|png" with a list of the file types you are looking
> for separated by the "|" character
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>
>
> On Mon, Sep 1, 2014 at 1:28 PM, JB <sundown at pacifier.com> wrote:
>
>> I have not tried it yet but if it works
>> the problem is I might want to use
>> a variety of file types so the repeat
>> would filter one line at a time and
>> then you check for that type in the
>> list of types you will allow.
>>
>> The way you provided would need it
>> to allow a list of types or I would need
>> to keep filtering so there might be a
>> faster way but I am not sure.
>>
>> Thank you for the reply and code advice.
>>
>> John Balgenorth
>>
>>
>> On Sep 1, 2014, at 1:24 PM, Martin Koob <mkoob at rogers.com> wrote:
>>
>>>
>>> I think you can use the filter command with a wildcard and your
>> extension.
>>> Put your folder path into tMyFolderPath then:
>>>
>>> set the folder to tMyFolderPath
>>> put the files into theFiles
>>> filter theFiles with "*.jpg"
>>>
>>> Martin
>>>
>>>
>>>
>>> --
>>> View this message in context:
>> http://runtime-revolution.278305.n4.nabble.com/Filtering-FIle-Types-tp4682777p4682778.html
>>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list