home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 December
/
Chip_2003-12_cd2.bin
/
oo
/
download
/
f_0019
/
sbasic.jar
/
text
/
sbasic
/
common
/
03010302.xml
< prev
next >
Wrap
Extensible Markup Language
|
2003-01-16
|
2KB
|
34 lines
<?xml version="1.0" encoding="utf-8"?>
<html><head><title>Funkce Green [Runtime]</title><meta name="filename" content="text/sbasic/common/03010302"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
p.P1{
}
p.P2{
}
span.T1{
font-weight:bold;}
</style></head><body>
<help:to-be-embedded Eid="green" xmlns:help="http://openoffice.org/2000/help">
<p class="Head1"><help:link Id="66625">Funkce Green [Runtime]</help:link></p>
<p class="Paragraph">Vrací hodnotu zelené složky pro zadaný kód barvy.</p>
</help:to-be-embedded>
<p class="Paragraph"><span class="T1">Syntaxe:</span></p>
<p class="Paragraph">Green (Barva typu Long) <help:key-word value="Green" tag="kw66625_1" xmlns:help="http://openoffice.org/2000/help"/></p>
<p class="Paragraph"><span class="T1">Návratová hodnota:</span></p>
<p class="Paragraph">Integer</p>
<p class="Paragraph"><span class="T1">Parametr:</span></p>
<p class="Paragraph">Barva: Výraz typu Long Integer udávající jakýkoli <help:popup Id="66475" Eid="farbcodes" xmlns:help="http://openoffice.org/2000/help">kód barvy</help:popup>, pro který chcete vrátit zelenou složku.</p>
<p class="P2">Příklad:</p>
<p class="PropText">Sub ExampleColor</p>
<p class="PropText">Dim lVar As Long</p>
<p class="PropText">lVar = rgb(128,0,200)</p>
<p class="PropText">msgbox "The color " & lVar & " contains the components:" & Chr(13) &_</p>
<p class="PropText">"red = " & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>red(lVar) & Chr(13)&_</p>
<p class="PropText">"green= " & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>green(lVar) & Chr(13)&_</p>
<p class="PropText">"blue= " & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>blue(lVar) & Chr(13) , 64,"colors"</p>
<p class="PropText">end sub</p>
<p class="PropText"/>
</body></html>