tigrot Well-Known Member Licensed User Longtime User Jan 15, 2018 #1 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.
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 Jan 15, 2018 #2 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
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
tigrot Well-Known Member Licensed User Longtime User Jan 15, 2018 #3 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 Upvote 0
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
Cableguy Expert Licensed User Longtime User Jan 15, 2018 #4 tigrot said: 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 Click to expand... funny enough, my first answer started exactly like that : "It the same as any other B4X product..." Upvote 0
tigrot said: 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 Click to expand... funny enough, my first answer started exactly like that : "It the same as any other B4X product..."