CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Method not found

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.