21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting 1 Setting 2<br />

String 97-08-06 09:00:00 8/6/97 09:00:00<br />

Number 35648.375 35648.375<br />

timestamp( A,'YYYY-MM-DD hh.mm') where A=35648 returns:<br />

Setting 1 Setting 2<br />

String 1997-08-06 00.00 1997-08-06 00.00<br />

Number 35648 35648<br />

Back to Other Functions.<br />

Color Functions<br />

These functions can be used in color expressions in sheet object properties supporting calculated color in<br />

image charts.<br />

The functions RBG, HSL and syscolor always return a color with the alpha value of 255 (opaque).<br />

Optionally, for any of the colors a parameter for alpha factor can be given. An alpha of 0 corresponds to full<br />

transparency. An alpha of 255 corresponds to full opacity.<br />

color (n)<br />

This function returns the color representation of color number n in the relevant chart palette. The color representation<br />

is a dual value where the text representation comes in the form of 'RGB(r, g, b)' where r, g and b<br />

are numbers between 0 and 255 representing the red, green and blue color value respectively. The number<br />

representation is an integer representing the red, green and blue components as they are defined in Visual<br />

Basic. Outside the calculated color expression in the Chart Properties: Colors (page 631) dialog, the function<br />

will always return black.<br />

RGB (e1, e2, e3 )<br />

This function returns the color representation of a color defined by the red component e1, the green component<br />

e2 and the blue component e3. All three parameters must be expressions evaluating to integers in the<br />

range between 0 and 255. The color representation is a dual value where the text representation comes in the<br />

form of 'RGB(r, g, b)' where r, g and b are numbers between 0 and 255 representing the red, green and blue<br />

color value respectively. The number representation is an integer representing the red, green and blue components<br />

as they are defined in Visual Basic.<br />

ARGB(alpha, e1, e2, e3)<br />

This function returns the color representation of a color defined by the red component e1, the green component<br />

e2 and the blue component e3 with an alpha factor (opacity) of alpha. All four parameters must be<br />

expressions evaluating to integers in the range between 0 and 255. The color representation is a dual value<br />

where the text representation comes in the form of 'RGB(a,r, g, b)' where a, r, g and b are numbers between 0<br />

and 255 representing the alpha, red, green and blue color value respectively. The number representation is an<br />

integer representing the alpha, red, green and blue components as defined in Visual Basic.<br />

HSL (hue, saturation, luminosity)<br />

This function returns the color representation of a color defined by a hue between 0 and 1, a saturation<br />

value between 0 and 1 and a luminosity value between 0 and 1. The color representation is a dual value<br />

where the text representation comes in the form of 'RGB(r, g, b)' where r, g and b are numbers between 0 and<br />

361

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!