i have a main module called "main", within the module i have declared 2 other modules "Interfacing" and "Espec", within these 2 submodules they both have a structure called "coord" which is identical. The problem is that when i have defined a function in one module with "coord" as type and try to assign a value in the other module with coord type i get error message "Value of type Main.Interfacing.Coord cannot be converted to Main.Espec.Coord", so basically how could i pass that structure?
sample code:
Code:<module "Main"> Public Interfacing as new Interfacing Public Espec as new Espec <module "Interfacing"> Public Structure Coord public x% public y% End Structure Public Function getcoord(byval someparameter%) as coord 'assign values n stuff return getcoord end function <module "Espec> Public Structure Coord public x% public y% End Structure Public Sub Something() Dim somevalue as coord = main.interfacing.getcoord(someparameter) End Sub


Reply With Quote
