Variable substitution

new topic     » topic index » view thread      » older message » newer message

I have read a few threads on variable substitution, but they all seem to predate
v3.1.1.  Has the ability been added?  If not, is there a common way to implement
it?

I'm trying to develop of database driven windowing system.  That means I read
from my database the information I need in order to build windows and widgets.

A simple example might be that I go to the database to find that I want to build
a combo box and that the name of the combo box should be "Combo1".

If I was positioning the combo myself in the IDE, it might generate the
following:

global constant Combo1 = createEx( Combo, "", Window1, 432, 76, 588, 28*6,
PBS_VERTICAL+LBS_NOINTEGRALHEIGHT, 0 )

After I read the database, I have two variables, say TYPEOFWIDGETTOBUILD, which
has the value "Combo" and NUMBEROFWIDGETTOBUILD, which has the value "1"

Is there any way to write something like:

global constant &TYPEOFCOMOBOTOBUILD&NAMEOFWIDGETTOBUILD = createEx( Combo, "",
Window1, 432, 76, 588, 28*6, PBS_VERTICAL+LBS_NOINTEGRALHEIGHT, 0 )

If that can't be done, can somebody suggest a workaround?

Thanks

Mike

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu