Script BASIC Command and Function Reference
Total Page:16
File Type:pdf, Size:1020Kb
Script BASIC Command and Function Reference Peter Verhas Version: November 27, 2014 This page intentionally left blank ScriptBasic Command and Function Reference Contents List of Commands by Sections .......................................................................................... 1 array .................................................................................................................................. 1 error................................................................................................................................... 1 errord................................................................................................................................. 1 file...................................................................................................................................... 1 loop ................................................................................................................................... 1 math .................................................................................................................................. 2 misc................................................................................................................................... 2 pattern ............................................................................................................................... 2 planned ............................................................................................................................. 3 process.............................................................................................................................. 3 string ................................................................................................................................. 3 test .................................................................................................................................... 4 time ................................................................................................................................... 4 Commands ....................................................................................................................... 5 ABS ................................................................................................................................... 5 ACOS ................................................................................................................................ 5 ACOSECANT.................................................................................................................... 5 ACTAN .............................................................................................................................. 5 ADDDAY ........................................................................................................................... 6 ADDHOUR ........................................................................................................................ 6 ADDMINUTE..................................................................................................................... 6 ADDMONTH ..................................................................................................................... 7 ADDRESS( myFunc() ) ..................................................................................................... 7 ADDSECOND ................................................................................................................... 8 ADDWEEK ........................................................................................................................ 8 ADDYEAR......................................................................................................................... 8 ASC(string)........................................................................................................................ 9 ASECANT ......................................................................................................................... 9 ASIN.................................................................................................................................. 9 ATAN................................................................................................................................. 9 ATN ................................................................................................................................. 10 BIN .................................................................................................................................. 10 BINMODE [ # fn ] | input | output .................................................................................... 10 CALL subroutine ............................................................................................................. 10 CHDIR directory.............................................................................................................. 11 CHOMP() ........................................................................................................................ 11 CHR(code) ...................................................................................................................... 11 CINT................................................................................................................................ 12 CLOSE [ # ] fn ................................................................................................................. 12 CLOSE DIRECTORY [#] dn............................................................................................ 12 COMMAND()................................................................................................................... 13 Concatenate operator &.................................................................................................. 13 CONF("conf.key")............................................................................................................ 13 COS ................................................................................................................................ 14 i ScriptBasic Command and Function Reference COSECANT .................................................................................................................... 15 COTAN............................................................................................................................ 15 COTAN2.......................................................................................................................... 15 CRYPT(string,salt) .......................................................................................................... 15 CURDIR()........................................................................................................................ 15 CVD................................................................................................................................. 15 CVI .................................................................................................................................. 16 CVL ................................................................................................................................. 16 CVS................................................................................................................................. 16 DAY................................................................................................................................. 16 DECLARE COMMAND function ALIAS cfun LIB library................................................. 17 DECLARE SUB function ALIAS cfun LIB library............................................................. 17 DELETE file/directory_name........................................................................................... 18 DELTREE file/directory_name ........................................................................................ 19 DO................................................................................................................................... 19 DO UNTIL condition........................................................................................................ 20 DO WHILE condition....................................................................................................... 21 END................................................................................................................................. 21 ENVIRON("envsymbol") or ENVIRON(n) ....................................................................... 21 EOD(dn) .......................................................................................................................... 23 EOF(n) ............................................................................................................................ 23 ERROR() or ERROR n ................................................................................................... 23 ERROR$() or ERROR$(n) .............................................................................................. 24 EVEN .............................................................................................................................. 24 EXECUTE("executable_program", time_out,pid_v) ........................................................ 24 EXIT FUNCTION............................................................................................................. 25 EXIT SUB.......................................................................................................................