• +33 1 41 31 82 82
  • This email address is being protected from spambots. You need JavaScript enabled to view it.

A PowerBuilder Color Function and a PowerBuilder Color Chart

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


Code Analysis

Explore & Understand complex code Evaluate the impact of a change. Improve PB and Database Code.


Learn More

Visual Guard

Application Security

Control Access to Sensitive Data.
Monitor Audit application Security.
Send notifications on suspicious events.

Learn More

AscentialTest Automated Software Testing

Automated Testing

The ONLY testing tool fully supporting
PowerBuilder Datawindows and Objects.

Learn More

© 2024 Novalys. All Rights Reserved.