OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
3<br />
1<br />
2<br />
3<br />
4<br />
Contents<br />
Copyright....................................................................................................................................................................................2<br />
Preface......................................................................................................5<br />
<strong>OpenOffice</strong>.<strong>org</strong> <strong>BASIC</strong> Programming <strong>Guide</strong>...................................................7<br />
About <strong>OpenOffice</strong>.<strong>org</strong> Basic...................................................................................................................................................7<br />
Intended Users of <strong>OpenOffice</strong>.<strong>org</strong> Basic...............................................................................................................................8<br />
Use of <strong>OpenOffice</strong>.<strong>org</strong> Basic...................................................................................................................................................8<br />
More Information......................................................................................................................................................................8<br />
The Language of <strong>OpenOffice</strong>.<strong>org</strong> <strong>BASIC</strong>........................................................9<br />
Overview of a Basic Program..................................................................................................................................................9<br />
Working With Variables.........................................................................................................................................................11<br />
Strings.......................................................................................................................................................................................12<br />
Numbers...................................................................................................................................................................................13<br />
Boolean Values........................................................................................................................................................................16<br />
Date and Time.........................................................................................................................................................................16<br />
Arrays........................................................................................................................................................................................17<br />
Scope and Life Span of Variables..........................................................................................................................................20<br />
Constants..................................................................................................................................................................................21<br />
Operators..................................................................................................................................................................................22<br />
Branching.................................................................................................................................................................................23<br />
Loops........................................................................................................................................................................................25<br />
Procedures and Functions......................................................................................................................................................27<br />
Error Handling........................................................................................................................................................................30<br />
Other Instructions...................................................................................................................................................................32<br />
Runtime Library........................................................................................35<br />
Conversion Functions.............................................................................................................................................................35<br />
Strings.......................................................................................................................................................................................38<br />
Date and Time.........................................................................................................................................................................40<br />
Files and Directories...............................................................................................................................................................42<br />
Message and Input Boxes.......................................................................................................................................................47<br />
Other Functions......................................................................................................................................................................49<br />
Introduction to the API..............................................................................51<br />
Universal Network Objects (UNO)......................................................................................................................................51<br />
Properties and Methods..........................................................................................................................................................52