function pad(str, length, padChar) {
str = trim(str);
var strLen = len(str);//<--##This is the error line##
var difference = length - strLen;
if (strLen GT length) {
newStr = str;
} else {
newStr = str & repeatstring(padChar, difference);
}
return newstr;
}
Here's the error I'm getting:
==========
Just in time compilation error
Invalid parser construct found on line 8 at position 2. ColdFusion was
looking at the following text:
var
Invalid expression format. The usual cause is an error in the
expression structure.
==========
BTW, it doesn't seem to help do declare:
var strLen = '';
strLen = trim(str);
Thanks,
Jamie
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists