home *** CD-ROM | disk | FTP | other *** search
- package allaire.util.template;
-
- import allaire.util.TypelessValue;
- import netscape.util.Vector;
-
- class LenFunction extends Function {
- LenFunction() {
- super(new FunctionInfo("Len", 1, false, 1, -1, -1, -1));
- }
-
- public TypelessValue doIt(Vector var1) throws FunctionCallException {
- String var2 = ((Function)this).getArgumentAsString(var1, 0);
- return new TypelessValue(var2.length());
- }
- }
-