Hi !
As i've now a lot of dim ... as edittext on my main file code, i'm searching a way to better structure my code.
I know how to add code module and use some functions in it without GUI access. But i don't know how to 'extract the 'sub Globals' with the dim 'gui' items (edittext, button, ...)
My goal is to have for each data base form code inside it's own file :
Hope you u
nderstand me with my poor english.
(as php include if you prefer !)
Thanks !
As i've now a lot of dim ... as edittext on my main file code, i'm searching a way to better structure my code.
I know how to add code module and use some functions in it without GUI access. But i don't know how to 'extract the 'sub Globals' with the dim 'gui' items (edittext, button, ...)
My goal is to have for each data base form code inside it's own file :
B4X:
(form diaporama)
Dim Diaporama_title as Editext
Dim Diaporama_text as Editext
Dim Diaporama_button_save as Button
...
sub Diaporama_button_save_click()
..
..
end sub
sub diaporama_add_to_db (dsfds, fdsfsd)
..
...
end sub
Sub diaporama_Delete ...
End sub
(form articles)
Dim Articles_title as EditText
Dim Article_text as Editext
sub article_add ()
end sub
Hope you u
nderstand me with my poor english.
(as php include if you prefer !)
Thanks !
Last edited: