home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kompuutteri Kaikille K-CD 2002 #3
/
K-CD_2002-03.iso
/
OpenOffice
/
f_0046
/
sbasic.jar
/
text
/
sbasic
/
common
/
03010301.xml
< prev
next >
Wrap
Extensible Markup Language
|
2001-09-07
|
2KB
|
31 lines
<?xml version="1.0" encoding="utf-8"?>
<html><head><title>Blue Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03010301"/><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{
}
span.T1{
font-weight:bold;}
</style></head><body>
<help:to-be-embedded Eid="blue" xmlns:help="http://openoffice.org/2000/help">
<p class="Head1"><help:link Id="66620">Blue Function [Runtime]</help:link></p>
<p class="Paragraph">Returns the blue component of the specified color code.</p>
</help:to-be-embedded>
<p class="Paragraph"><span class="T1">Syntax</span>:</p>
<p class="Paragraph">Blue (Color As Long) <help:key-word value="Blue" tag="kw66620_1" xmlns:help="http://openoffice.org/2000/help"/></p>
<p class="Paragraph"><span class="T1">Return value</span>:</p>
<p class="Paragraph">Integer</p>
<p class="Paragraph"><span class="T1">Parameter</span>:</p>
<p class="Paragraph">Color value: Long integer expression that specifies any <help:popup Id="66475" Eid="farbcodes" xmlns:help="http://openoffice.org/2000/help">color code</help:popup> for which to return the blue component.</p>
<p class="Paragraph"><span class="T1">Example:</span></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 & " consists of:" & Chr(13) &_</p>
<p class="PropText">"red = " & Red(lVar) & Chr(13)&_</p>
<p class="PropText">"green= " & Green(lVar) & Chr(13)&_</p>
<p class="PropText">"blue= " & Blue(lVar) & Chr(13) , 64,"colors"</p>
<p class="PropText">End Sub</p>
<p class="PropText"/>
</body></html>