[Gambas-user] R: Label1.Foreground = Color("#FF0000"), How to?

Fabien Bodard gambas.fr at ...626...
Thu Mar 24 20:06:27 CET 2016


Le 24 mars 2016 18:36, "Yahoo" <olivier.cruilles at ...614...> a écrit :
>
> Dim col as string = "#FF0000"
>
> Label1.Foreground = Val("&H" & col & "&")
The ending & not necessary
Label1.Foreground= val(replace(col,"#","&H"))
>
>
>
> Olivier Cruilles
>
> Le March 24, 2016 à 13:17:50, abbat81 (abbat.81 at ...787...) a écrit:
>
> Dim col as string = "#FF0000"
>
> How to conver? CInt(Replace(st, "#", "&")) doesn't work
>
> Label1.Foreground = col
>
>
>
> --
> View this message in context:
http://gambas.8142.n7.nabble.com/R-Label1-Foreground-Color-FF0000-How-to-tp55763p55764.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



More information about the User mailing list