I have one pdf file to load per button click (7 in all) that I would like to be opened from different buttons on the module before. Is it possible to go to another module from there, that has something like:
So if the module before has button 3 clicked, then open this file in the new module, else if module before has button 4 clicked, then open this file in new module, etc... etc...
The only reason I ask this, is cos I don't want to have 50 million modules with 1 webview per module, I have about 150 webview files to look at in this app.
When I do compile the above code, I get the error:
TIA
B4X:
If ModuleBefore.button3_click = True Then
pg.Title = "ModuleBefore"
WebView1.LoadUrl("ModuleBefore.pdf")
Else If ModuleBefore2.button4_click = True Then
pg.Title = "ModuleBefore2"
WebView1.LoadUrl("ModuleBefore4.pdf")
End If
So if the module before has button 3 clicked, then open this file in the new module, else if module before has button 4 clicked, then open this file in new module, etc... etc...
The only reason I ask this, is cos I don't want to have 50 million modules with 1 webview per module, I have about 150 webview files to look at in this app.
When I do compile the above code, I get the error:
An error occurred:
(Line: 43) 43
java.lang.StackOverflowError
TIA