Values passed in from VBS or JScript to Java always String

webmasterbeta

New Member
When I attempt to pass a numeric value from VBScript or JavaScript into aJava COM dll by calling an overloaded functions i.e. String func1 (int i)OR String func1 (String str) the String func1 (String str) is always invoked.I don't understand why.ASP CODE--------func1(1)Java Overload Functions-----------------------private String func1(String FldName){int index = 0;index = Row.column_name.indexOf(FldName);return(((Vector)Row.column_value.elementAt(this.curRecPointer)).elementAt(index).toString( ));}private String func1(int index){if (index > Row.column_name.size()){this.Error = -1;this.ErrDescription = "Field Index out of bounds";return ("");}else return(((Vector)Row.column_value.elementAt(this.curRecPointer)).elementAt(index).toString( ));}
 
Top