That is only part of coding. The more is:
        myEd.assignActiveEditor();
        myEd.command("ecEditorTop");
        var s1 = myEd.lineText();
        var reg = /[^\-  ].*(?= *)/i;
        s1 = s1.match(reg);
        s1 = (s1 == null? "": s1);
        s1 = s1.toString();
//echo( typeof(s1));
        var temp1 = '';
        if(s1.charAt(0) == '*'){
                s1 = s1.substr(1);
                temp1 = 'select * from temp1;'
        }
-----
without 's1 = s1.toString();', 's1.toString()' will cause an error what I
reported. Now it's fixed. Thank you so much, vbr!

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

Odpovedet emailem