You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date,function,DATE,575,"DATE","Returns the current date as string ""DD/MM/YYYY""."
50
50
Date,function,DATEFMT,576,"DATEFMT (format, dmy| (d,m,y)| julian_date)","Returns formatted date string."
51
51
Date,function,JULIAN,577,"JULIAN (dmy| (d,m,y))","Returns the Julian date. (dates must be greater than 1/1/100 AD)."
52
+
Date,function,TICKS,1448,"TICKS","Returns the number of milliseconds that have elapsed between successive calls."
52
53
Date,function,TIME,578,"TIME","Returns the current time as string ""HH:MM:SS""."
54
+
Date,function,TIMER,1449,"TIMER","Returns the number of seconds from midnight."
55
+
Date,function,TIMESTAMP,1450,"TIMESTAMP filename","Returns the file last modified date and time."
53
56
Date,function,WEEKDAY,579,"WEEKDAY (dmy| (d,m,y)| julian_date)","Returns the day of the week (0 = Sunday)."
54
57
File,command,ACCESS,580,"ACCESS (file)","Returns the access rights of the file."
55
58
File,command,BLOAD,582,"BLOAD filename[, address]","Loads a specified memory image file into memory."
@@ -71,7 +74,6 @@ File,command,SEEK,597,"SEEK #fileN; pos","Sets file position for the next read/w
71
74
File,command,TLOAD,598,"TLOAD file, BYREF var [, type]","Loads a text file into array variable. Each text-line is an array element. type 0 = load into array (default), 1 = load into string."
72
75
File,command,TSAVE,599,"TSAVE file, var","Writes an array to a text file. Each array element is a text-line."
73
76
File,command,WRITE,600,"WRITE #fileN; var1 [, ...]","Store variables to a file as binary data."
74
-
File,function,ACCESS,601,"ACCESS (file)","Returns the access rights of the file."
75
77
File,function,BGETC,602,"BGETC (fileN)","Reads and returns a byte from file or device (Binary mode) ."
76
78
File,function,EOF,603,"EOF (fileN)","Returns true if the file pointer is at end of the file. For COMx and SOCL VFS returns true if the connection is broken."
77
79
File,function,EXIST,604,"EXIST (file)","Returns true if file exists."
@@ -106,6 +108,16 @@ Graphics,function,TXTW,634,"TXTW (s)","Returns the text width of string s in pix
106
108
Graphics,function,XPOS,635,"XPOS","Returns the current X position of the cursor in ""characters""."
107
109
Graphics,function,YPOS,636,"YPOS","Returns the current Y position of the cursor in ""characters""."
108
110
Language,command,CALL,637,"CALL (fp)","Invoke a sub or func by address pointer."
111
+
Language,command,THROW,1437,"THROW [info [, ...]]","The THROW command (previously known as RTE) is used to initiate a catch-able error. If there is no surrounding TRY/CATCH block, THROW can be used to abort the program."
112
+
Language,constant,COMMAND,1459,"COMMAND","SmallBASIC startup command line options."
113
+
Language,constant,CWD,1456,"CWD","Current working directory"
114
+
Language,constant,FALSE,1457,"FALSE","FALSE"
115
+
Language,constant,HOME,1458,"HOME","User HOME folder"
116
+
Language,constant,PI,1452,"PI","Holds PI"
117
+
Language,constant,SBVER,1451,"SBVER","Version and build information"
118
+
Language,constant,TRUE,1455,"TRUE","TRUE"
119
+
Language,constant,XMAX,1453,"XMAX","Holds the screen width in pixels"
120
+
Language,constant,YMAX,1454,"YMAX","Holds the screen height in pixels."
109
121
Language,function,IFF,638,"IFF expr","Inline version of IF. eg, animal = ""cat"": fur = IFF( animal = ""cat"", ""yes"", ""no""): ? fur"
110
122
Language,keyword,AS,1424,"AS #fileN","See: OPEN"
111
123
Language,keyword,BG,1428,"SOUND frq, dur [, vol] [BG]","Play sound in the background. This prevent the program from blocking while the sound plays."
@@ -120,12 +132,9 @@ Language,keyword,ELSE,644,"ELSE","foo = 2: if foo==1: ? ""one"": ELSE: ? ""not o
Language,keyword,END TRY,1427,"END TRY","The END TRY statement marks the end of a TRY/CATCH block."
122
134
Language,keyword,ENDIF,646,"ENDIF","foo = 1: if foo==1: ? ""one"": ENDIF"
123
-
Language,keyword,EXEC,647,"EXEC file","Transfers control to another operating system program."
124
135
Language,keyword,EXIT,648,"EXIT [FOR|LOOP|SUB|FUNC]","Exits a multi line function definition, a loop, or a subprogram. By default (if no parameter is specified) exits from last command block (loop, for-loop or routine)."
125
-
Language,keyword,EXPORT,649,"EXPORT thing","Export a SUB, FUNC or variable from a UNIT to be used by the unit consumer."
126
136
Language,keyword,FI,650,"FI","Declares the end of an IF statement. Same as ENDIF."
127
137
Language,keyword,FUNC,651,"FUNC foo (a, b)","Declares a function. Return a value by assigning a 'variable' with the same name as the function."
128
-
Language,keyword,IMPORT,652,"IMPORT","Import an exported UNIT variable, SUB or FUNC."
129
138
Language,keyword,LOCAL,653,"LOCAL","Declare local variables inside a SUB or FUNC. Local variables no longer exist once the SUB or FUNC has returned."
130
139
Language,keyword,NEXT,654,"NEXT","See FOR."
131
140
Language,keyword,SELECT,655,"SELECT CASE expr","Perform multiple tests on the expression. Offers a more concise syntax to writing successive IF tests."
@@ -135,7 +144,6 @@ Language,keyword,SUB,657,"SUB foo (a, b)","Declare a sub procedure. Sub's do not
135
144
Language,keyword,THEN,658,"THEN","foo = 1: if foo==1 THEN: ? ""one"": fi"
136
145
Language,keyword,TO,1420,"FOR t = 1 TO 10","Specifies the loop counter end in a FOR loop"
137
146
Language,keyword,TRY,1425,"TRY","The TRY statement introduces a TRY/CATCH BLOCK"
138
-
Language,keyword,UNIT,659,"UNIT name","Units are a set of procedures, functions and/or variables that can be used by another program or unit."
139
147
Language,keyword,UNTIL,660,"UNTIL","a = 0: repeat: a++: ? a: UNTIL a = 10"
140
148
Language,keyword,USE,661,"USE","Used with various commands for passing a user-defined expression. eg SPLIT s,"" "",v USE TRIM(x). Trim each element of v."
141
149
Language,keyword,USG,1423,"PRINT USG","Synonym for USING"
@@ -144,7 +152,7 @@ Language,operator,AND,662,"a AND b","Logical AND. Right side is not evaluated if
144
152
Language,operator,BAND,663,"a BAND b","Bitwise AND."
Language,operator,IMP,666,"a IMP b","Used to perform a logical implication on two expressions."
148
156
Language,operator,IN,667,"a IN b","Returns an index (1 Based) to the matching element when b is an array. Returns TRUE if the value is contained within b as a string."
149
157
Language,operator,LIKE,668,"a LIKE b","Regular-expression operator. Compares the left part of the expression with the right side regex pattern."
Language,operator,OR,674,"a OR b","Logical OR. Right side is not evaluated if left side evaluates to True."
156
164
Language,operator,XNOR,675,"a XNOR b","Bitwise exclusive NOT OR."
157
165
Language,operator,XOR,676,"a XOR b","Bitwise exclusive OR. Equivalent syntax to: a ~ b"
158
-
Language,statement,CHAIN,677,"CHAIN source","Compile and run the given source. Source can be a file name, a line of code or an array of code. Use ENV to share variables with the parent process."
159
166
Language,statement,CONST,678,"CONST name = expr","Declare a variable who's value does not change during program execution."
160
167
Language,statement,END,679,"END","Declares the END of a SUB or FUNC."
161
168
Language,statement,FOR,680,"FOR expr","Defines a FOR/NEXT loop. FOR counter = start TO end [STEP incr] ... NEXT. FOR element IN array (or map) ... NEXT."
@@ -165,7 +172,6 @@ Language,statement,IF,683,"IF expr","Tests the expression and IF it evaluates to
165
172
Language,statement,LABEL,684,"LABEL name","Defines a label. A label marks a position in the code."
166
173
Language,statement,LET,685,"LET var=expr","Assigns a value to the variable."
167
174
Language,statement,ON,686,"ON GOTO|GOSUB label1 [, ..., labelN]","Causes a branch to one of a list of labels."
168
-
Language,statement,OPTION,687,"OPTION keyword","Used to pass parameters to the run-time environment."
169
175
Language,statement,REM,688,"REM comment","Code comments. Comments can also be introduced using # and single quote character. "
170
176
Language,statement,REPEAT,689,"REPEAT ... UNTIL expr","Begins the definition of a REPEAT/UNTIL loop."
171
177
Language,statement,RETURN,690,"RETURN","Execution branches to the command immediately following the most recent GOSUB command."
@@ -286,18 +292,19 @@ String,function,UCASE,803,"UCASE (s)","Converts the string s to upper case."
286
292
String,function,UPPER,804,"UPPER (s)","Converts the string s to upper case."
287
293
String,function,VAL,805,"VAL (s)","Returns the numeric value of string s."
288
294
System,command,DELAY,806,"DELAY ms","Delay for a specified amount of milliseconds. Note 'delay' depends on the system clock."
289
-
System,command,ENV,807,"ENV expr","See ENVIRON."
290
-
System,command,ENVIRON,808,"ENVIRON expr","Adds a variable to or deletes a variable from the current environment variable-table."
295
+
System,command,ENV,807,"ENV expr","Adds a variable to or deletes a variable from the current environment variable-table."
291
296
System,command,PAUSE,809,"PAUSE [secs]","Pauses the execution for a specified length of time, or until user hit the keyboard."
292
297
System,command,RANDOMIZE,810,"RANDOMIZE [int]","Seeds the random number generator."
System,command,THROW,811,"THROW [info [, ...]]","The THROW command (previously known as RTE) is used to initiate a catch-able error. If there is no surrounding TRY/CATCH block, THROW can be used to abort the program."
295
299
System,command,TROFF,813,"TROFF","See TRON."
296
300
System,command,TRON,814,"TRON","When trace mechanism is ON, displays each line number as the program is executed."
297
-
System,function,ENV,815,"ENV expr","See ENVIRON."
298
-
System,function,ENVIRON,816,"ENVIRON expr","Returns the value of a specified entry in the current environment table. If the parameter is empty ("""") then returns an array of the environment variables (in var=value form)."
301
+
System,function,ENV,815,"ENV expr","Returns the value of a specified entry in the current environment table. If the parameter is empty ("""") then returns an array of the environment variables (in var=value form)."
299
302
System,function,FRE,606,"FRE (x)","Returns system information. eg, 0 = free memory, "
300
303
System,function,PROGLINE,817,"PROGLINE","Returns the current program line number."
301
304
System,function,RUN,818,"RUN cmdstr","Loads a secondary copy of system's shell and, executes an program, or an shell command."
302
-
System,function,TICKS,819,"TICKS","Returns the number of milliseconds that have elapsed between successive calls."
303
-
System,function,TIMER,821,"TIMER","Returns the number of seconds from midnight."
305
+
System,keyword,EXEC,1443,"EXEC file","Transfers control to another operating system program."
306
+
System,keyword,EXPORT,1440,"EXPORT thing","Export a SUB, FUNC or variable from a UNIT to be used by the unit consumer."
307
+
System,keyword,IMPORT,1441,"IMPORT","Import an exported UNIT variable, SUB or FUNC."
308
+
System,keyword,UNIT,1446,"UNIT name","Declares the source module as a unit. Units are a set of procedures, functions and/or variables that can be used by another program or unit."
309
+
System,statement,CHAIN,1439,"CHAIN source","Compile and run the given source. Source can be a file name, a line of code or an array of code. Use ENV to share variables with the parent process."
310
+
System,statement,OPTION,1442,"OPTION keyword","Used to pass parameters to the run-time environment."
0 commit comments