You have to do your VAR statements before anything else.
Try it this way:
function pad(str, length, padChar) {
var strLen = len(trim(str));
var difference = length - strLen;
str = trim(str);
if (strLen GT length) {
Shawn Grover
-Original Message-
From: Jamie Jackson
That works!
Thanks,
Jamie
On Tue, 12 Mar 2002 13:03:55 -0700, in cf-talk you wrote:
You have to do your VAR statements before anything else.
Try it this way:
function pad(str, length, padChar) {
var strLen = len(trim(str));
var difference = length - strLen;
str = trim(str);
if (strLen
2 matches
Mail list logo