"there is a folder" not case sensitive

Sarah Reichelt sarah.reichelt at gmail.com
Fri Mar 19 19:39:26 EDT 2010


On Sat, Mar 20, 2010 at 3:04 AM, Jim Ault <jimaultwins at yahoo.com> wrote:
> On Mar 19, 2010, at 5:53 AM, Sarah Reichelt wrote:
>>
>> Does anyone know a way to make "there is a folder" case sensitive?
>> I have tried setting the caseSensitive to true but that doesn't help.
>>
>> In this case, I have a list of folders from a case sensitive web site
>> and there are two folders with the same name but one has an upper case
>> letter.
>> While this is not an ideal situation, it's not something I can
>> dictate, but I have to be able to work with it.
>> At the moment, it looks like I have to write my own "there is a
>> folder" routine, unless anyone knows how to make it case-sensitive.
>
> I think that 'there is a folder' is a query to the operating system, thus
> not explicitly a Rev-controlled function.  If the operating system sees
> "folderX" and "folderx" as the same, then 'there is a folder' will return
> true.

The operating system sees them as different, but if I need both and
only have "folderX", then checking for the existence of "folderx" will
still return true.


> My solution would be to get a list, then use "is among the lines", or
> "lineoffset" with caseSensitive as true.

Yes, I think this is the best way to go.

Thanks Jim & Bob for your help.

Cheers,
Sarah



More information about the use-livecode mailing list