This post comes from the SlapOut Tech blog, he wanted a comprehensive PB color chart so he created his own My PowerBuilder Color Chart, he then "wanted an easier way to specify a color. So [he] created a new function, f_color. You pass it one of the PowerBuilder color names and it will return the proper number. For example, our alternate row highlighting expression now becomes:
if (mod(getrow(), 2) = 0, f_color("White"), f_color("Gray"))
Plus, you can now do things like use Transparent and the Window colors:
if (mod(getrow(), 2) = 0, f_color("Transparent"), f_color("Button Face")) Check out the rest of the post here