B4J Question string Form Name

BeneBarros

Active Member
Licensed User
Longtime User
I have in SqlServer a table that contains the name and description of the forms that I use in a system.
Is there any way to run the form with the name in a string variable ?.
example:
Currently do so.
B4X:
Dim lb as label = lstProg.Get (lstProg.SelectedIndex)
formName = lb.tag
Select Case formName
    Case "UserLogin"
        UserLogin.show (..., ..., ...)
    ...
    ...
end select
It has to do something like this?
avoiding the Select case?
B4X:
Dim lb as label = lstProg.Get (lstProg.SelectedIndex)
formName = lb.tag
formName.show (... ....)

thank you
 
Last edited:

BeneBarros

Active Member
Licensed User
Longtime User
This me returning an error in frm.Show
 

Attachments

  • error.jpg
    356.4 KB · Views: 160
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…