I named all the elements on my main form and hardcoded the colors.
This works great.
Now I want to go a little further and let a method retrieve the colorcodes from some
field. This way I could change the collorsettings even faster.
But…It does not work.
Ron:
I named all the elements on my main form and hardcoded the colors.
This works great.
Now I want to go a little further and let a method retrieve the colorcodes from some
field. This way I could change the collorsettings even faster.
But…It does not work.
globals.topbar = forms.main.topbarfield //where topbarfield contains: ‘#000000’
forms.main.elements.topbar.bgcolor = globals.topbar //does not work
so what is topbarfield? a form variable that contains a string? or is it a field that you want to retrieve the color from? Have you considered setting a breakpoint and checking while you step what is going on?