gregm
Posts: 21
|
Posted: 09/07/2007, 2:54 AM |
|
I'm sure I'm missing something simple here.
I have a simple function in an assembly which I initiate from CodeCharge, the following two work perfectly together.
// *******************************
// function in the VB.NET class
// *******************************
Public Function UserLogon() As Integer
Dim InRet As Integer = 1
Return InRet
End Function
// *********************
//code charge
// *********************
Dim MySecurity As New MyLibrary.WebClasses.MyClassLib
MyRet = MySecurity.UserLogon()
No problems with the above.
But if I allow a parameter in the UserLogon function, then the I get an error
System.MissingMethodException: Method not found: 'Int32 MyLibrary.WebClasses.MyClassLib.UserLogon
For example
// *********************
// function in the class
// *********************
Public Function UserLogon(ByVal Password As String) As Integer
Dim InRet As Integer = 1
Return InRet
End Function
// *********************
//code charge
// *********************
Dim MySecurity As New MyLibrary.WebClasses.MyClassLib
Dim Password as System.String
Password = "hello"
MyRet = MySecurity.UserLogon(Password)
Something about the parameter makes the function invisible to CodeCharge, because if I take the parameter out again and rebuild. It's fine.
Any help appreciated
Greg
_________________
Greg Martin
gmartin@microresource.co.uk |
|
|
|