I wish if I can use class module like Code module To share it's subs in another module
for example
public sub Sharedsub
''Some code
end sub
when i want to use this in another module I only call class name then subs like code module
for example
dim s as int=sharedclass.sharedsub
I know I can use code module for this but I want Also use class module because I want to create private sub and shared sub in it without declare the class in another module
for example 'Hello' class module
public class module
public name as string
end sub
public hi(name as string)
return "Hi " + name
end sub
in another module for example 'main'
when i want to call shred hi sub from main module
I must first declare Hello class
dim hi as hello
dim msg as string
msg=hi.hi("Every one")
If I has multi shared sub in different classes It's difficult To declare every class
I wish If I can Use it like code module