I just downloaded your project, but unfortunately it does not work because I get an error ROBOCOPY does nit find a sp‚cifi file.
Your project is a B4XPages project, and to zip it you must use this line on top of the B4XMainPage module.
View attachment 157235
Can you please upload the new zip file.
From what i understand, you want to access Label2 from the B4XLegalCheck module from the DatabaseFunction module.
I suggest you to try the following:
In the B4XLegalCheck module add the Label2 in the calling routine:
Private Sub EditText1_EnterPressed
DatabaseFunctions.LegalCheck_FindIteminDatabase(EditText1.Text, Label2)
End Sub
And in the DatabaseFunction module add it in the routine.
Public Sub LegalCheck_FindIteminDatabase(BarcodeNumber As String, Label2 As Label)
Dim SQLCommand As String = ""
SQLCommand = SQLCommand & "Select "
SQLCommand = SQLCommand & "posdescription "
SQLCommand = SQLCommand & "from producttable "
SQLCommand = SQLCommand & "where barcodenumber='" & BarcodeNumber & "';"
'This should then change the Label2 in the B4XLegalCheck / LegalCheck Page
' to say the Word "From Database Sub Function"
'
'This is just so I can work out how to share data between modules as label2
'will be used to show the product Description from the database Once I have
'Worked out how to connect to the DB Directly (as this app will only run
'on a internal network only no External access allowed
Label2.Text =
End Sub
Here, you can access Label2 directly.
I have not tested it.
Another suggestion where ever you can use B4XViews instead native views.
Example for Panel, Label and EditText views, these are cross - platform and have some more properties.