Re: array null after split string
- From: "Dag Sunde" <me@xxxxxxxxxxxx>
- Date: 31 Aug 2006 11:18:39 +0200
edoardo.poeta@xxxxxxxxx wrote:
I'm a dummy. I have a basic knowledge of javascript and I want to<snipped/>
split a string, but I receive an error at line 15. Where my error in
make the array? Why? Can someone help me to resolve? Thank's.
The name of file is
E:\delibere test\pdf\2002\2002-01-01-GC-000-Testo.pdf
<HTML>
<HEAD>
<SCRIPT LANGUAGE=JAVASCRIPT>
function verify(){
var estremi = new Array();
var entrata = new String;
var msg = new String;
entrata = document.fs.File1.value
estremi = entrata.split["-"];
estremi = entrata.split("-");
split is a function, thus you must use "(" and ")", not
square brackets "[" and "]".
--
Dag.
.
- References:
- array null after split string
- From: edoardo . poeta
- array null after split string
- Prev by Date: Re: array null after split string
- Next by Date: Re: Write. function
- Previous by thread: Re: array null after split string
- Index(es):
Relevant Pages
|