R
Ritesh Sompura
Hi! All there,
I need to create controls on the form depending upon the values from
database.
If database contains -
Button then a button is tobe created,
Label then a label is to be created, and so on...
I can write select case or if elseif kind of structure. But, it would be
nice if I can have something like 'Macro substitution' in FoxPro.
That is, what I want is,
dim control = new <a text from DB>
Just by this, all my needs of writing select case and nested if is
eliminated.
If the text contains "Button" then button will be of button type.
Hence, just by changing value in DB, my forms gets changed at the time of
creation.
Hope I have explained properly. Any suggestion is welcomed.
Thank you in advance.
I need to create controls on the form depending upon the values from
database.
If database contains -
Button then a button is tobe created,
Label then a label is to be created, and so on...
I can write select case or if elseif kind of structure. But, it would be
nice if I can have something like 'Macro substitution' in FoxPro.
That is, what I want is,
dim control = new <a text from DB>
Just by this, all my needs of writing select case and nested if is
eliminated.
If the text contains "Button" then button will be of button type.
Hence, just by changing value in DB, my forms gets changed at the time of
creation.
Hope I have explained properly. Any suggestion is welcomed.
Thank you in advance.