50% found this document useful (2 votes)
1K views4 pages

LibreOffice BASIC Functions Including Parameters

This document lists functions in LibreOffice BASIC along with their return types and parameters. There are over 100 functions described. Common functions include those for dates, strings, files, math operations and more.

Uploaded by

László Gyaraki
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
50% found this document useful (2 votes)
1K views4 pages

LibreOffice BASIC Functions Including Parameters

This document lists functions in LibreOffice BASIC along with their return types and parameters. There are over 100 functions described. Common functions include those for dates, strings, files, math operations and more.

Uploaded by

László Gyaraki
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Functions in LibreOffice BASIC - including Parameters

The Functions listed below were extracted from the LibreOffice source file: /libreoffice-core-3.6.2.2/basic/source/runtime/stdobj.cxx For !tatements see the file: /libreoffice-core-3.6.2.2/basic/source/com"/"arser.cxx#

Function

Return

Parameters
&ame as strin' # number as double # # strin' as strin' # strin' as strin' # number as double # # ,-%-.alue as lon' # Object as object1 2rocedure&ame as strin'1 /allT("e as inte'er # ex"ression as 0ariant # ex"ression as 0ariant # ex"ression as 0ariant # ex"ression as 0ariant # 4so3ate as strin' # 3ate as date # ex"ression as 0ariant # ex"ression as 0ariant # strin' as strin' # strin' as strin' # 4ndex as inte'er1 5x"ression as 0ariant # strin' as inte'er # strin' as inte'er # ex"ression as 0ariant # ex"ression as 0ariant # b5nable as bool # 7rl as strin' # !(stem2ath as strin' # number as double # class as strin' # method&ame as strin' # "refix as strin'1 t("ename as strin' # dialo'librar( as object1 dialo'name as strin' # ser0icename as strin' # ser0icename as strin'1 ar'uments as arra( # classname as strin' # t("e as strin'1 0alue as 0ariant # 0alues as arra( # ex"ression as 0ariant # ex"ression as 0ariant # strin' as strin' # ex"ression as 0ariant # ex"ression as 0ariant # /ost as double1 !al0a'e as double1 Life as double1 2eriod as double1 Factor as 0ariant # # 4nter0al as strin'1 &umber as lon'1 3ate as date # 4nter0al as strin'1 3ate8 as date1 3ate2 as date1 Firstda(ofwee9 as inte'er1 Firstwee9of(ear as inte'er # 4nter0al as strin'1 3ate as date1 Firstda(ofwee9 as inte'er1 Firstwee9of(ear as inte'er # :ear as inte'er1 6onth as inte'er1 3a( as inte'er # !trin' as strin' # 3ate as date # /hannel as lon'1 /ommand as strin' # $""lication as strin'1 To"ic as strin' #

$bout!tar%asic null $bs double $rra( object $sc lon' $sc) * lon' $tn double %ee" null %lue + inte'er /all%(&ame 0ariant /%ool bool /%(te b(te //ur currenc( /3ate date /3ateFrom4so date /3ateTo4so strin' /3ec decimal /3bl double /h3ir null /h3ri0e null /hoose 0ariant /hr strin' /hr) * strin' /4nt inte'er /Ln' lon' /om"atibilit(6ode bool /on0ertFrom7rl strin' /on0ertTo7rl strin' /os double /reateObject object /a"ture$ssertions null /reate7noListener object /reate7no3ialo' object /reate7no!er0ice object /reate7no!er0ice)ith$r'uments object /reate7no!truct object /reate7no.alue object /reate2ro"ert(!et object /!n' sin'le /!tr strin' /ur3ir strin' /.ar 0ariant /.5rr 0ariant 33% * double 3ate 3ate$dd 3ate3iff 3ate2art 3ate!erial 3ate.alue 3a( 3deexecute 3deinitiate date date double lon' date date inte'er null inte'er

Posted in LibreOffice Forum http://en.libreofficeforum.org/node/5245 by ian. 20 !"02"04

Functions in LibreOffice BASIC - including Parameters


Function
3de"o9e 3dere;uest 3determinate 3determinateall 3im$rra( 3ir 3o50ents 3um"$llObjects 5;ual7noObjects 5nable,eschedule 5n0iron 5OF 5rl 5rr 5rror 5x" File$ttr File/o"( File3ateTime File5xists FileLen FindObject Find2ro"ert(Object Fix Format Format3ateTime * Frac FreeFile FreeLibrar( F. * -et -et$ttr -et3efault/ontext -et3ialo'<oomFactor= -et3ialo'<oomFactor: -et-74T("e -et-74.ersion -et2ath!e"arator -et2rocess!er0ice6ana'er -et!olar.ersion -et!(stemTic9s -et!(stemT("e -lobal!co"e -reen + >as7no4nterfaces >ex >our 4if 4n"ut * 4n"ut%ox 4n!tr 4n!tr,e0 * 4nt 42mt * 4,, * 4s$rra(

Return
null strin' null null object strin' inte'er em"t( bool null strin' bool lon' 0ariant strin' double inte'er null strin' bool lon' object object double strin' strin' double inte'er null double null inte'er object double double inte'er lon' strin' object lon' lon' inte'er object inte'er bool strin' inte'er 0ariant strin' strin' lon' lon' double double double bool

Parameters
/hannel as lon'1 4tem as strin'1 3ata as strin' # /hannel as lon'1 4tem as strin' # /hannel as lon' # # # File!"ec as strin'1 attrmas9 as inte'er # # File!"ec as strin'1 3um"$ll as inte'er # .ariant as 0ariant1 .ariant as 0ariant # b5nable as bool # 5n0ironmentstrin' as strin' # /hannel as inte'er # # # code as lon' # number as double # /hannel as inte'er1 $ttributes as inte'er # !ource as strin'1 3estination as strin' # filename as strin' # filename as strin' # filename as strin' # &ame as strin' # Object as object1 &ame as strin' # number as double # ex"ression as 0ariant1 format as strin' # 3ate as date1 &amedFormat as inte'er # number as double # # 6odulename as strin' # ,ate as double1 &2er as double1 2mt as double1 2. as 0ariant1 3ue as 0ariant # filenumber as inte'er1 recordnumber as lon'1 0ariablename as 0ariant # filename as strin' # # # # # # # # # # # # ,-%-.alue as lon' # 4nterface&ame as strin' # number as lon' # 3ate as date # %ool as bool1 .ariant8 as 0ariant1 .ariant2 as 0ariant # &umber as lon'1 File&umber as lon' # 2rom"t as strin'1 Title as strin'1 3efault as strin'1 =2osTwi"s as lon'1 :2osTwi"s as lon' # !tart as strin'1 !trin'8 as strin'1 !trin'2 as strin'1 /om"are as inte'er # !trin'8 as strin'1 !trin'2 as strin'1 !tart as strin'1 /om"are as inte'er # number as double # ,ate as double1 2er as double1 &2er as double1 2. as double1 F. as 0ariant1 3ue as 0ariant # .alue$rra( as arra(1 -uess as 0ariant # .ariant as 0ariant #

Posted in LibreOffice Forum http://en.libreofficeforum.org/node/5245 by ian. 20 !"02"04

Functions in LibreOffice BASIC - including Parameters


Function
4s3ate 4s5m"t( 4s5rror 4s6issin' 4s&ull 4s&umeric 4sObject 4s7no!truct ?oin @ill L%ound L/ase Left Len Len% Load Load2icture Loc Lof Lo' LTrim 6e * 6id 6inute 64,, * 693ir 6onth 6onth&ame * 6s'%ox &ow &2er * &2. * Oct 2artition 2mt * 22mt * 2ut 2. * A%/olor ,andomiBe ,ate * ,ed + ,eset ,esol0e2ath ,-% ,e"lace ,i'ht ,m3ir ,ound * ,nd ,TL * ,Trim !a0e2icture

Return
bool bool bool bool bool bool bool bool strin' null lon' strin' strin' lon' lon' null object lon' lon' double strin' object strin' inte'er double null inte'er strin' inte'er date double double strin' strin' double double null double lon' null double inte'er null strin' lon' strin' strin' null double double object strin' null

Parameters
.ariant as 0ariant # .ariant as 0ariant # .ariant as 0ariant # .ariant as 0ariant # .ariant as 0ariant # .ariant as 0ariant # .ariant as 0ariant # .ariant as 0ariant # list as object1 delimiter as strin' # files"ec as strin' # .ariant as 0ariant # strin' as strin' # !trin' as strin'1 /ount as lon' # !trin'Or.ariant as 0ariant # !trin'Or.ariant as 0ariant # object as object # strin' as strin' # /hannel as inte'er # /hannel as inte'er # number as double # strin' as strin' # # !trin' as strin'1 !tart2os as lon'1 Len'th as lon' # 3ate as date # .alue$rra( as arra(1 Finance,ate as double1 ,ein0est,ate as double # "athname as strin' # 3ate as date # 6onth as inte'er1 $bbre0iate as bool # 2rom"t as strin'1 %uttons as inte'er1 Title as strin'1 >el"file as strin'1 /ontext as inte'er # # ,ate as double1 2mt as double1 2. as double1 F. as 0ariant1 3ue as 0ariant # ,ate as double1 .alue$rra( as arra( # number as lon' # number as lon'1 start as lon'1 sto" as lon'1 inter0al as lon' # ,ate as double1 &2er as double1 2. as double1 F. as 0ariant1 3ue as 0ariant # ,ate as double1 2er as double1 &2er as double1 2. as double1 F. as 0ariant1 3ue as 0ariant # filenumber as inte'er1 recordnumber as lon'1 0ariablename as 0ariant # ,ate as double1 &2er as double1 2mt as double1 F. as 0ariant1 3ue as 0ariant # number as inte'er # &umber as double # &2er as double1 2mt as double1 2. as double1 F. as 0ariant1 3ue as 0ariant1 -uess as 0ariant # ,-%-.alue as lon' # # 2ath as strin' # ,ed as inte'er1 -reen as inte'er1 %lue as inte'er # 5x"ression as strin'1 Find as strin'1 ,e"lace as strin'1 !tart as inte'er1 /ount as inte'er1 /om"are as inte'er # !trin' as strin'1 /ount as lon' # "athname as strin' # 5x"ression as double1 &umdecimal"laces as inte'er # &umber as double # # strin' as strin' # object as object1 strin' as strin' #

Posted in LibreOffice Forum http://en.libreofficeforum.org/node/5245 by ian. 20 !"02"04

Functions in LibreOffice BASIC - including Parameters


Function
!econd !ee9 !end@e(s !et$ttr !'n !hell !in !L& * !:3 * !"ace !"c !"lit !;r !tr !tr/om" !tr/on0 !trin' !tr,e0erse * !witch Tan Time Timer Time!erial Time.alue Trace/ommand Trim Twi"s2er2ixel= Twi"s2er2ixel: T("eLen T("e&ame 7%ound 7/ase 7nload .al .arT("e )ait Func/aller )ait7ntil )ee9da( )ee9da(&ame * :ear

Return
inte'er lon' null null inte'er lon' double double double strin' strin' object double strin' inte'er object strin' strin' 0ariant double 0ariant date date date null strin' lon' lon' inte'er strin' lon' strin' null double inte'er null 0ariant null inte'er strin' inte'er

Parameters
3ate as date # /hannel as inte'er # !trin' as strin'1 )ait as bool # File as strin'1 $ttributes as inte'er # number as double # /ommandstrin' as strin'1 )indow!t(le as inte'er # number as double # /ost as double1 3ouble as double1 Life as double # /ost as double1 !al0a'e as double1 Life as double1 2eriod as double # strin' as lon' # /ount as lon' # ex"ression as strin'1 delimiter as strin'1 count as lon' # number as double # number as double # !trin'8 as strin'1 !trin'2 as strin'1 /om"are as inte'er # !trin' as strin'1 /on0ersion as strin'1 L/43 as inte'er # /ount as lon'1 Filler as 0ariant # !trin'8 as strin' # 5x"ression as 0ariant1 .alue as 0ariant # number as double # # # >our as lon'1 6inute as lon'1 !econd as lon' # !trin' as strin' # /ommand as strin' # !trin' as strin' # # # .ar as 0ariant # .ar as 0ariant # .ar as 0ariant # !trin' as strin' # 3ialo' as object # !trin' as strin' # .ar as 0ariant # 6illiseconds as lon' # # 3ate as double # 3ate as date1 Firstda(ofwee9 as inte'er # )ee9da( as inte'er1 $bbre0iate as bool1 Firstda(ofwee9 as inte'er # 3ate as date #

* These Functions re;uire .%$ su""ort to be enabled. 4nsert CO"tion .%$!u""ort 8C at the to" of the %$!4/ 6odule. + These Functons1 ,ed #1 -reen #1 and %lue #1 are onl( su""orted in CnormalC mode where .%$ !u""ort is not enabled. i.e. CO"tion .%$!u""ort DC.

Posted in LibreOffice Forum http://en.libreofficeforum.org/node/5245 by ian. 20 !"02"04

You might also like