1. Toan Nguyen
  2. PowerBuilder
  3. Thursday, 17 October 2024 16:40 PM UTC

Hello All,

Checking out the RGB() function in PB2017R3, I find that RGB(255,0,0) = #FF0000, value for Red color instead the color is actually Blue.

And, RGB(0,0,255) = #0000FF is supposed to be Blue color but it's actually Red.

Looks like the RGB() function is flip-flopping on Blue and Red colors.

Can someone confirm this finding in PowerBuilder 2017R3?

Thanks,

Toan Nguyen




Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 17 October 2024 17:03 PM UTC
  2. PowerBuilder
  3. # 1

Hi Toan;

 We have never had a reported issue on the RGB method. However, make sure that your receiving & working with its returned colour values using a "Long" data type.

https://docs.appeon.com/pb2022/powerscript_reference/rGB_func.html

Regards ... Chris 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.