case. However if you change the changeCase property of the string form
case. Any idea how to achieve this in your code during run time? Please let
me know if the question is not clear.
Post by MathiasHello,
you can change the class syssetupfromrun to modify all forms on runtime.
write your method which will iterator through all formcontrols on the
current design and set the property changecase to uppercase.
it have to look like this.
void change2uppercase(Object _parentControl)
{
counter ctrlCnt;
FormStringcontrol control;
FormBuildcontrol c;
;
for (ctrlCnt = 1; ctrlCnt <= _parentControl.controlCount(); ctrlCnt++)
{
c = _parentControl.controlNum(ctrlCnt);
if (SysFormRun::controlType(classidget(c)) == FormcontrolType::String)
{
control = _parentControl.controlNum(ctrlCnt);
control.changeCase(2);
}
else if (c.isContainer())
{
this.change2uppercase(c);
}
}
}
this method will change the property changecase to uppercase on all
formstringcontrols.
now you only have to call this method on the init() method after super()
this.change2uppercase(this.design());
I hope this is what you are looking for.
Kind regards
--
Mathias Füßler
my blog: http://starside.eu
Post by PremHi, does anyone know of a global property or any other way of achieving this?
I know there is the changecase property for Form controls and for string
EDTs but I need this behavior system wide and changing it for individual
fields will be too tedious.
Any suggestions appreciated. Thanks!