HI, all
I wrote a pspad script in js, prat of it as following. When run it through menu
of scruipt, it caused an error at s1.charAt(0), said object doesn't support this
property or method. Please advise. Thank you in advance.

-----
s1 = (s1 == null? "": s1);
var temp1 = '';
if(s1.charAt(0) == '*'){
        s1 = s1.substr(1);
        temp1 = 'select * from temp1;'
        }
-----

-- 
<http://forum.pspad.com/read.php?2,49549,49549>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem