home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Shopper 139
/
dpcs0999.iso
/
Web
/
CFserver
/
data1.cab
/
Java
/
CFJava.cab
/
CFJavaRuntime.cab
/
allaire
/
util
/
template
/
LenFunction.class
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Class File
|
1999-03-31
|
727 b
|
16 lines
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());
}
}