Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Modify with a formula

$
0
0

hello to all

I have this question:

 

I have extracted the formula of the backgroundcolor of a field in a datawindow and I want to put it in my script with a modify.

but it doesn't  work.

 

 

 

 

Code extracted from the field in the DataWindow (it works)

>>    if ( campo2 < fido, rgb(255,0,0), if ( campo2 > ( abs(fido) * -1 ) and campo2 < abs(fido) , rgb(255,255,0), rgb(255,255,255) )  )

 

 

My script ( it does not work )

>>  ls_ = "campo2.Background.Color=if ( campo2 < fido, rgb(255,0,0), if ( campo2 > ( abs(fido) * -1 ) and campo2 < abs(fido) , rgb(255,255,0), rgb(255,255,255) )  )"

>>dw_stampa1.Modify(ls_)

 

 

what's wrong

 

 

thanks

 

 

Gimmy


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>