Subj : file_area.dir object
To   : Tegularius
From : Nightfox
Date : Mon Jul 13 2009 12:37 pm

 Re: file_area.dir object
 By: Tegularius to All on Mon Jul 13 2009 06:50:57

>  > This brings up my remaining little question.  I would like my .js to
>  > recognize whether the change of directory is successful by comparing
>  > newcode to bbs.curdir_code after an attempt to change it.  However,
>  > if the cases of the two strings don't match, the comparison returns false
>  > How do I change the case of a string to upper or lower?  The guide mentio
>  > toLowerCase and toUpperCase as methods of strings, but I can't make them
>  > work.  Are they obsolete?  Could someone give an example of the syntax?

toUpperCase() and toLowerCase() return a copy of the string in upper/lower
case.  You could use it like this:
if (bbs.curdir_code.toUpperCase() == "SOME_DIR")


---
� Synchronet � Digital Distortion BBS