B4R Question Calling sub and fields from a module

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody,
suppose I have a sub in main named display and a public field called dato
I have another module (modulo.bas), how do I have to call display from this module? How can I reference dato from this module. I have found no example of multimodule program.
 

Cableguy

Expert
Licensed User
Longtime User
Display must be set as a public sub, so that it is accessible from any other module like callsub(Main, "display"). For the field, its reference by something like Main.dato
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Very kind ...
It's the same as any other b4x language. Since the online help accepted any kind of construct i was a little puzzled!
Good night.
Mauro
funny enough, my first answer started exactly like that : "It the same as any other B4X product..."
 
Upvote 0
Top