|
-
Values passed in from VBS or JScript to Java always String
When I attempt to pass a numeric value from VBScript or JavaScript into a
Java 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( )
);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks