21.08.2013 Views

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Numbers 16<br />

Octal Values<br />

<strong>OpenOffice</strong>.<strong>org</strong> Basic also understands the octal system (base 8 system), which uses the<br />

numbers 0 to 7. You must use whole numbers that are preceded by &O.<br />

Dim A As Long<br />

A = &O77 ' Octal value 77, corresponds to the decimal value 63<br />

A = &O10 ' Octal value 10, corresponds to the decimal value 8<br />

Source: http:/ / <strong>wiki</strong>. services. openoffice. <strong>org</strong>/ w/ index. php? title=Documentation/ <strong>BASIC</strong>_<br />

<strong>Guide</strong>/ Numbers&oldid=104491<br />

Principal Authors: Fpe, Ccornell, Strompf<br />

Boolean Values<br />

Boolean variables can only contain one of two values: True or False. They are suitable for<br />

binary specifications that can only adopt one of two statuses. A Boolean value is saved<br />

internally as a two-byte integer value, where 0 corresponds to the False and any other<br />

value to True. There is no type declaration symbol for Boolean variables. The declaration<br />

can only be made using the supplement As Boolean.<br />

Example declaration of a Boolean variable:<br />

Dim Variable As Boolean<br />

Source: http:/ / <strong>wiki</strong>. services. openoffice. <strong>org</strong>/ w/ index. php? title=Documentation/ <strong>BASIC</strong>_<br />

<strong>Guide</strong>/ Boolean&oldid=96845<br />

Principal Authors: Fpe, Ccornell<br />

Date and Time<br />

Date variables can contain date and time values. When saving date values, <strong>OpenOffice</strong>.<strong>org</strong><br />

Basic uses an internal format that permits comparisons and mathematical operations on<br />

date and time values. There is no type declaration symbol for date variables. The<br />

declaration can only be made using the supplement As Date.<br />

Example declaration of a date variable:<br />

Dim Variable As Date

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

Saved successfully!

Ooh no, something went wrong!