[script language = jscript runat = server] /*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* * FUNCTION: fnConvertArray * DESCRIPTION: This function converts an array from VBscript format to JScript format. Jscript arrays are unchanged. This function is probably required when a Jscript function is called from a vbscript asp page and one or more of the parameters to the function is an array. * STATUS: might work * WORKING HISTORY: 27th Nov 2000-- put in separate file * DOCUMENTED AT: http://www.geocities.com/matth3wbishop/eg/asp/ * CODE LOCATION: http://www.geocities.com/matth3wbishop/eg/asp/fnConvertArray.txt *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*/ //converts vb arrays to jscript function fnConvertArray(aa) { var aaTempA = new Array(); var aaTempB = new Array(); //*** ERROR HANDLING if (aa == null) { fnErrorMessage( "fnConvertArray", "aa", "A required parameter was omitted
"); } /* if param null */ if (typeof(aa) == "unknown") { var aaTempA = new VBArray(aa); aaTempB = aaTempA.toArray(); } else { aaTempB = aaTempA; } return aaTempB; } /* fnConvertArray() */ [/script]