set the attributes of a screen field in a more dynamic way?

Walter Haslbeck <[email protected]>
Newsgroups gmane.comp.lang.4gl.fourjs.user
Organization AMG GmbH
Message-ID <[email protected]>
Hello,

Is there a way to set the (color-)attributes of a screen-field in a more 
dynamic way? I don't like hardcoded color attributes in the source, 
instead I want to get the color out of a database table.

Something like:

==========================================================
[...]
define lv_data char(20)
define lv_color char(50)

let lv_data = "Hello World!"
let lv_color = "YELLOW, REVERSE"

display lv_data to my_screenfield attribute(lv_color)
[...]
==========================================================

are any known hints or workarounds to archive such a behaviour?

(OK, I can generate & compile a screen-form with the wanted colors "on 
the fly", but I'm looking for something less complicated)

Walter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.