CPGDeveloper
Board Regular
- Joined
- Oct 8, 2008
- Messages
- 190
Hi All,
I don't know if this is possible, but I have a subroutine that populates the caption of a label. Something like this:
Forms!Form1!LabelTitle.Caption = titlevariable
'titlevariable' is defined by looking up the value in a table, and if the value in the table is a simple string, such as 'MANAGER', it works fine.
However, what if instead of passing the string 'MANAGER', I want to pass another variable.
So for example, if titlevariable = "anothervariable", which is also a variable. And anothervariable = "MANAGER"
In this scenario, is there a way I can write
Forms!Form1!LabelTitle.Caption = titlevariable, so that the caption of this label ends up being 'MANAGER' as opposed to 'another variable'?
I don't know if this is possible, but I have a subroutine that populates the caption of a label. Something like this:
Forms!Form1!LabelTitle.Caption = titlevariable
'titlevariable' is defined by looking up the value in a table, and if the value in the table is a simple string, such as 'MANAGER', it works fine.
However, what if instead of passing the string 'MANAGER', I want to pass another variable.
So for example, if titlevariable = "anothervariable", which is also a variable. And anothervariable = "MANAGER"
In this scenario, is there a way I can write
Forms!Form1!LabelTitle.Caption = titlevariable, so that the caption of this label ends up being 'MANAGER' as opposed to 'another variable'?