I am trying to understand how I can implement some of my VB code in Xojo, as I am considering moving to this:
-
I need to be able to set the properties of an object whose name is stored in a variable,
In VB, I would add the object to a Panel and use the following code:String1 = "Buton1" Panel1.Controls(String1).Text = "BlahBlah"
I realized .Text will be .Caption in Xojo
-
I need to be able to execute a method where the name is stored in a variable. In VB I would
use something like:String2 = “App1.Module1”
System.Reference.Assembly.Get ExecutingAssembly.CreateInstance(String2)
The reason for this, is that I build values of the strings from a database, which allows me to build standard applications just changing the entries in the DB. The majority of back end coding for screen menus of any type and application configuration can then be controlled via a database entry and not hard coded entries or even config files. All I worry about is the UI Experience/ layout. For standard database apps, I use my own metadata tables to drive maintenance and lookup utilities with zero additional coding. If I can get these working, I will given examples on how this can be done.
Any and all assistance is greatly appreciated.