I wish if I can use class module like Code module To share it's subs in another module
for example
when i want to use this in another module I only call class name then subs like code module
for example
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
in another module for example 'main'
when i want to call shred hi sub from main module
I must first declare Hello class
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
for example
B4X:
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
B4X:
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
B4X:
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
B4X:
dim hi as hello
dim msg as string
msg=hi.hi("Every one")
I wish If I can Use it like code module