-
Notifications
You must be signed in to change notification settings - Fork 16
/
snippets-jbase.json
3360 lines (3360 loc) · 114 KB
/
snippets-jbase.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"ALPHA": {
"prefix": "ALPHA",
"body": [
"ALPHA($value)"
],
"description": "This function will check that an expression consists entirely of alphabetic characters.\nReturns TRUE or FALSE"
},
"ABS": {
"prefix": "ABS",
"body": [
"ABS($math_expression)"
],
"description": "This function returns the mathematical absolute of the mathematical expression in the argument."
},
"ASSIGNED": {
"prefix": "ASSIGNED",
"body": [
"ASSIGNED($variable)"
],
"description": "The function returns a Boolean TRUE or FALSE result depending on whether or not a variable has an assigned value."
},
"BREAK": {
"prefix": "BREAK",
"body": [
"BREAK"
],
"description": "The statement allows for the configuration of the BREAK statement."
},
"CALL": {
"prefix": "CALL",
"body": [
"CALL $subroutine_name($arguments)"
],
"description": "The statement transfers program execution to an external SUBROUTINE.\nThe @ variant of this statement assumes that subroutine.name is a variable that contains the name of the subroutine to call."
},
"CALLdotNET": {
"prefix": "CALLdotNET",
"body": [
"CALLdotNET $NameSpaceAndClassName, $methodName, $param SETTING $ret"
],
"description": "This command allows BASIC to call any .NET assembly and is useful when using third party applications."
},
"CALLdotNET On Error": {
"prefix": "CALLdotNET",
"body": [
"CALLdotNET $NameSpaceAndClassName, $methodName, $param SETTING $ret ON ERROR $errStatment"
],
"description": "This command allows BASIC to call any .NET assembly and is useful when using third party applications."
},
"CALLJ": {
"prefix": "CALLJ",
"body": [
"CALLJ $packageAndClassName, $methodName, $param SETTING $ret"
],
"description": "The CALLJ command allows BASIC to call a Java method. CALLJ is useful when using third party applications offering a Java API (for example, publish and subscribe, messaging, etc.). "
},
"CALLJ On Error": {
"prefix": "CALLJ",
"body": [
"CALLJ $packageAndClassName, $methodName, $param SETTING $ret ON ERROR $errStatement"
],
"description": "The CALLJ command allows BASIC to call a Java method. CALLJ is useful when using third party applications offering a Java API (for example, publish and subscribe, messaging, etc.). "
},
"CALLONEXIT": {
"prefix": "CALLONEXIT",
"body": [
"CALLONEXIT($subroutine_name)"
],
"description": "The CALLONEXIT function call allows you to specify the name of a SUBROUTINE to call when the program terminates."
},
"CASE Statement": {
"prefix": "BEGIN",
"body": [
"BEGIN CASE",
"\tCASE $1",
"\t\t$2",
"END CASE"
],
"description": "The CASE statement allows the programmer to execute a particular sequence of instructions based upon the results of a series of test expressions."
},
"CATS": {
"prefix": "CATS",
"body": [
"CATS($DynArr1, $DynArr2)"
],
"description": "The CATS function concatenates the corresponding elements in two dynamic arrays. "
},
"CHAIN": {
"prefix": "CHAIN",
"body": [
"CHAIN $expression"
],
"description": "he CHAIN statement exits the current program and transfers process control to the program defined by the expression. Process control will never return to the originating program."
},
"CHANGE": {
"prefix": "CHANGE",
"body": [
"CHANGE $search TO $replace IN $variable"
],
"description": "The CHANGE statement operates on a variable and replaces all occurrences of one string with another."
},
"CHANGETIMESTAMP": {
"prefix": "CHANGETIMESTAMP",
"body": [
"CHANGETIMESTAMP($Timestamp, $Array)"
],
"description": "The CHANGETIMESTAMP function can be used to adjust existing timestamp to return a new timestamp value."
},
"CHAR": {
"prefix": "CHAR",
"body": [
"CHAR($expression)"
],
"description": "The CHAR function returns the ASCII character of its argument."
},
"CHARS": {
"prefix": "CHARS",
"body": [
"CHARS($DynArr)"
],
"description": "The CHARS function accepts a dynamic array of numeric expressions as an argument and returns a dynamic array of corresponding ASCII characters."
},
"CHDIR": {
"prefix": "CHDIR",
"body": [
"CHDIR($path)"
],
"description": "The CHDIR function allows the current working directory, as seen by the process environment, to be changed."
},
"CLEAR": {
"prefix": "CLEAR",
"body": [
"CLEAR"
],
"description": "The CLEAR statement will initialize all the variables to numeric 0. This can be used at any time in the execution of a program."
},
"CLEARCOMMON": {
"prefix": "CLEARCOMMON",
"body": [
"CLEARCOMMON"
],
"description": "The statement initializes all unnamed common variables to a value of zero."
},
"COMPARE Left Justify": {
"prefix": "COMPARE",
"body": [
"COMPARE ($string1, $string2)"
],
"description": "The COMPARE function compares two strings and returns a value indicating whether or not they are equal. "
},
"COMPARE Right Justify": {
"prefix": "COMPARE",
"body": [
"COMPARE ($string1, $string2, \"R\" )"
],
"description": "The COMPARE function compares two strings and returns a value indicating whether or not they are equal. "
},
"CLEARDATA": {
"prefix": "CLEARDATA",
"body": [
"CLEARDATA"
],
"description": "The statement clears data stacked by the DATA statement. "
},
"CLEARFILE": {
"prefix": "CLEARFILE",
"body": [
"CLEARFILE $variable"
],
"description": "The CLEARFILE statement is used to clear all the data from a file previously opened with the OPEN statement."
},
"CLEARFILE All": {
"prefix": "CLEARFILE",
"body": [
"CLEARFILE $variable SETTING $setvar ON ERROR $statements"
],
"description": "The CLEARFILE statement is used to clear all the data from a file previously opened with the OPEN statement."
},
"CLEARINPUT": {
"prefix": "CLEARINPUT",
"body": [
"CLEARINPUT"
],
"description": "The command clears the terminal type-ahead buffer to allow the next INPUT statement to force a response from the user."
},
"CLEARSELECT": {
"prefix": "CLEARSELECT",
"body": [
"CLEARSELECT $ListName"
],
"description": "The CLEARSELECT statement is to clear active select lists."
},
"CLOSE": {
"prefix": "CLOSE",
"body": [
"CLOSE $variable"
],
"description": "The CLOSE statement is used to close an opened file, which is no longer required."
},
"CONVERT": {
"prefix": "CONVERT",
"body": [
"CONVERT $search TO $replace IN $expression"
],
"description": "The CONVERT statement converts one or more characters in a string to their corresponding replacement characters."
},
"CONVERT Function": {
"prefix": "CONVERT",
"body": [
"CONVERT($expression, $search, $replace)"
],
"description": "The CONVERT function is the function form of the CONVERT statement. It performs exactly the same function but may also operate on an expression rather than being restricted to variables."
},
"COS": {
"prefix": "COS",
"body": [
"COS($expression)"
],
"description": "The function calculates the cosine of any angle using floating point arithmetic, then rounds to the PRECISION implied by the jBASE BASIC program, which makes it very accurate."
},
"COUNT": {
"prefix": "COUNT",
"body": [
"COUNT($expression, $delimiter)"
],
"description": "The COUNT function returns the number of times that one string occurs in another."
},
"COUNTS": {
"prefix": "COUNTS",
"body": [
"COUNTS($dynamic_array, $substring)"
],
"description": "This function is useful to count the number of times a substring is repeated in each element of a dynamic array. The result is a new dynamic array whose elements are the counts corresponding to the elements in the dynamic array."
},
"CRT": {
"prefix": "CRT",
"body": [
"CRT $expression"
],
"description": "This statement sends data directly to the terminal, even if a PRINTER ON statement is currently active. "
},
"CRT @": {
"prefix": "CRT",
"body": [
"CRT @($col, $row):$expression"
],
"description": "This statement sends data directly to the terminal, even if a PRINTER ON statement is currently active. "
},
"DISPLAY": {
"prefix": "DISPLAY",
"body": [
"DISPLAY $expression"
],
"description": "This statement sends data directly to the terminal, even if a PRINTER ON statement is currently active. "
},
"BYTELEN": {
"prefix": "BYTELEN",
"body": [
"BYTELEN($expression)"
],
"description": "The BYTELEN function returns the length of the expression as the number of bytes rather than the number of characters."
},
"DATE": {
"prefix": "DATE",
"body": [
"DATE()"
],
"description": "The DATE function returns the date in internal system form. This date is expressed as the number of days since December 31, 1967."
},
"DCOUNT": {
"prefix": "DCOUNT",
"body": [
"DCOUNT($expression, $delimiter)"
],
"description": "This function counts the number of field elements in a string that are separated by a specified delimiter."
},
"DEBUG": {
"prefix": "DEBUG",
"body": [
"DEBUG"
],
"description": "The DEBUG statement causes the executing program to enter the jBASE BASIC debugger. "
},
"BREAK ON": {
"prefix": "BREAK",
"body": [
"BREAK ON"
],
"description": "This is used to turn the break key on in an application."
},
"BREAK OFF": {
"prefix": "BREAK",
"body": [
"BREAK OFF"
],
"description": "This is used to turn the break key off in an application."
},
"COL1": {
"prefix": "COL1",
"body": [
"COL1()"
],
"description": "These functions can be used in conjunction with the FIELD function to determine the character positions 1 position before the location of the last field."
},
"COL2": {
"prefix": "COL2",
"body": [
"COL2()"
],
"description": "These functions can be used in conjunction with the FIELD function to determine the character positions 1 position after the location of the last field."
},
"CREATE Then": {
"prefix": "CREATE",
"body": [
"CREATE $file_variable THEN",
"\t$statements",
"END"
],
"description": "This statement is intended to create files. It can be useful after an OPENSEQ statement to create a record in a directory file. CREATE creates the record or file if the OPENSEQ statement fails."
},
"CREATE Else": {
"prefix": "CREATE",
"body": [
"CREATE $file_variable ELSE",
"\t$statements",
"END"
],
"description": "This statement is intended to create files. It can be useful after an OPENSEQ statement to create a record in a directory file. CREATE creates the record or file if the OPENSEQ statement fails."
},
"CREATE Then/Else": {
"prefix": "CREATE",
"body": [
"CREATE $file_variable THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "This statement is intended to create files. It can be useful after an OPENSEQ statement to create a record in a directory file. CREATE creates the record or file if the OPENSEQ statement fails."
},
"DATA": {
"prefix": "DATA",
"body": [
"DATA $expression"
],
"description": "The DATA statement stacks the series of expressions on a terminal input FIFO stack. Terminal input statements will then treat this data as if entered at the keyboard."
},
"DECRYPT": {
"prefix": "DECRYPT",
"body": [
"DECRYPT($string, $key, $method)"
],
"description": "This function decrypts strings.\nMETHODS:\n\nJBASE_CRYPT_GENERAL General-purpose encryption scheme\nJBASE_CRYPT_AES algorithm (AES256) \nJBASE_CRYPT_AES_BASE64 algorithm (AES256, BASE64 encoded)\nJBASE_CRYPT_ROT13 Simple ROT13 algorithm. (Key not used)\nJBASE_CRYPT_XOR11 XOR MOD11 algorithm. Uses the first character of a key as a seed value.\nJBASE_CRYPT_RC2 RC2 algorithm\nJBASE_CRYPT_DES DES algorithm\nJBASE_CRYPT_3DES Three Key, Triple DES algorithm\nJBASE_CRYPT_BLOWFISH Blowfish algorithm\nJBASE_CRYPT_BASE64 (See below)\n\tBASE64 is not really an encryption method, but more of an encoding. The reason for this is that the output of an encryption often results in a binary string. It allows binary data to be represented as a character string. BASE64 operation is not required but is performed in addition to the primary algorithm. e.g. JBASE_CRYPT_RC2_BASE64\n\tENCRYPT with this method is the same as a DECRYPT with method JBASE_CRYPT_RC2 followed by DECRYPT with method JBASE_CRYPT_BASE64.\n\tDECRYPT with this method is the same as a DECRYPT with method JBASE_CRYPT_BASE64 followed by DECRYPT with method JBASE_CRYPT_RC2.\nJBASE_CRYPT_RC2_BASE64 RC2 algorithm\nJBASE_CRYPT_DES_BASE64 DES algorithm\nJBASE_CRYPT_3DES_BASE64 Triple DES algorithm\nJBASE_CRYPT_BLOWFISH _BASE64 Blowfish algorithm."
},
"DEFC": {
"prefix": "DEFC",
"body": [
"DEFC $FuncType $FuncName ($ArgTypes)"
],
"description": "Use the DEFC statement to declare an external C function to the jBASE BASIC compiler, define its arguments, and return types."
},
"DEFCE": {
"prefix": "DEFCE",
"body": [
"DEFCE $FuncType $FuncName ($ArgTypes)"
],
"description": "The DEFCE statement should be used, rather than the DEFC statement, for calling External C programs, which are pure ‘C’ code and do not use the jBASE library macros and functions."
},
"DEFFUN": {
"prefix": "DEFFUN",
"body": [
"DEFFUN $FuncName($args)"
],
"description": "This statement is used to declare an external jBASE BASIC function to the jBASE BASIC compiler and optionally define its arguments. The statement is used in the program that calls the function."
},
"ENCRYPT": {
"prefix": "ENCRYPT",
"body": [
"ENCRYPT($string, $key, $method)"
],
"description": "This function encrypts strings.\nMETHODS:\n\nJBASE_CRYPT_GENERAL General-purpose encryption scheme\nJBASE_CRYPT_AES algorithm (AES256)\nJBASE_CRYPT_AES_BASE64 algorithm (AES256, BASE64 encoded)\nJBASE_CRYPT_ROT13 Simple ROT13 algorithm. (Key not used)\nJBASE_CRYPT_XOR11 XOR MOD11 algorithm. Uses the first character of a key as a seed value.\nJBASE_CRYPT_RC2 RC2 algorithm\nJBASE_CRYPT_DES DES algorithm\nJBASE_CRYPT_3DES Three Key, Triple DES algorithm\nJBASE_CRYPT_BLOWFISH Blowfish algorithm\nJBASE_CRYPT_BASE64 (See below)\n\tBASE64 is not really an encryption method, but more of an encoding. The reason for this is that the output of an encryption often results in a binary string. It allows binary data to be represented as a character string. BASE64 operation is not required but is performed in addition to the primary algorithm. e.g. JBASE_CRYPT_RC2_BASE64\n\tENCRYPT with this method is the same as a DECRYPT with method JBASE_CRYPT_RC2 followed by DECRYPT with method JBASE_CRYPT_BASE64.\n\tDECRYPT with this method is the same as a DECRYPT with method JBASE_CRYPT_BASE64 followed by DECRYPT with method JBASE_CRYPT_RC2.\nJBASE_CRYPT_RC2_BASE64 RC2 algorithm\nJBASE_CRYPT_DES_BASE64 DES algorithm\nJBASE_CRYPT_3DES_BASE64 Triple DES algorithm\nJBASE_CRYPT_BLOWFISH _BASE64 Blowfish algorithm."
},
"DEL": {
"prefix": "DEL",
"body": [
"DEL $variable"
],
"description": "The DEL statement is used to remove a specified element of a dynamic array."
},
"DEL Attribute": {
"prefix": "DEL",
"body": [
"DEL $variable<$attr>"
],
"description": "The DEL statement is used to remove a specified element of a dynamic array."
},
"DEL Value": {
"prefix": "DEL",
"body": [
"DEL $variable<$attr, $value>"
],
"description": "The DEL statement is used to remove a specified element of a dynamic array."
},
"DEL SubValue": {
"prefix": "DEL",
"body": [
"DEL $variable<$attr, $value, $subValue>"
],
"description": "The DEL statement is used to remove a specified element of a dynamic array."
},
"DELETELIST": {
"prefix": "DELETELIST",
"body": [
"DELETELIST $expression"
],
"description": "The DELETELIST statement will delete the previously stored list named by expression."
},
"DELETESEQ Then": {
"prefix": "DELETESEQ",
"body": [
"DELETESEQ $expression THEN",
"\t$statements",
"END"
],
"description": "The DELETESEQ statement deletes a sequential file."
},
"DELETESEQ Else": {
"prefix": "DELETESEQ",
"body": [
"DELETESEQ $expression ELSE",
"\t$statements",
"END"
],
"description": "The DELETESEQ statement deletes a sequential file."
},
"DELETESEQ Then/Else": {
"prefix": "DELETESEQ",
"body": [
"DELETESEQ $expression THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "The DELETESEQ statement deletes a sequential file."
},
"DELETESEQ All": {
"prefix": "DELETESEQ",
"body": [
"DELETESEQ Expression SETTING $setvar ON ERROR $error_statements LOCKED $lock_statements THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "The DELETESEQ statement deletes a sequential file."
},
"DIV": {
"prefix": "DIV",
"body": [
"DIV($dividend, $divisor)"
],
"description": "The DIV function is used to calculate the value of the quotient after division of the dividend by the divisor."
},
"DIVS": {
"prefix": "DIVS",
"body": [
"DIVS($array1, $array2)"
],
"description": "The DIVS function is used to create a dynamic array containing the result of the element-by-element division of two dynamic arrays."
},
"DOWNCASE": {
"prefix": "DOWNCASE",
"body": [
"DOWNCASE($expression)"
],
"description": "DOWNCASE converts all uppercase characters in an expression to lowercase characters."
},
"LOWCASE": {
"prefix": "LOWCASE",
"body": [
"LOWCASE($expression)"
],
"description": "LOWCASE converts all uppercase characters in an expression to lowercase characters."
},
"UPCASE": {
"prefix": "UPCASE",
"body": [
"UPCASE($expression)"
],
"description": "UPCASE converts all lowercase characters in an expression to uppercase characters."
},
"DROUND": {
"prefix": "DROUND",
"body": [
"DROUND($value)"
],
"description": "The DROUND function performs double-precision rounding on a value. Double-precision rounding uses two words to store a number, accommodating a larger number than in single-precision rounding, which stores each number in a single word."
},
"DROUND Precision": {
"prefix": "DROUND",
"body": [
"DROUND($value, $precision)"
],
"description": "The DROUND function performs double-precision rounding on a value. Double-precision rounding uses two words to store a number, accommodating a larger number than in single-precision rounding, which stores each number in a single word."
},
"DTX": {
"prefix": "DTX",
"body": [
"DTX($expression)"
],
"description": "The DTX function will return the hexadecimal representation of a numeric expression."
},
"ECHO": {
"prefix": "ECHO",
"body": [
"ECHO $expression"
],
"description": "The ECHO statement will turn on or off the echoing of characters typed at the keyboard."
},
"EQS": {
"prefix": "EQS",
"body": [
"EQS($array1, $array2)"
],
"description": "The function is used to test if elements of one dynamic array are equal to the elements of another dynamic array."
},
"EQUATE": {
"prefix": "EQUATE",
"body": [
"EQUATE $symbol TO $expression"
],
"description": "EQUATE is used to declare a symbol equivalent to a literal, variable or simple expression."
},
"EXP": {
"prefix": "EXP",
"body": [
"EXP($expression)"
],
"description": "The EXP function returns the mathematical constant to the specified power."
},
"EXECUTE": {
"prefix": "EXECUTE",
"body": [
"EXECUTE $expression"
],
"description": "The EXECUTE or PERFORM statement allows the currently executing program to pause and execute another program. This may be any program, including another jBASE BASIC program or a jBASE command."
},
"EXECUTE All": {
"prefix": "EXECUTE",
"body": [
"EXECUTE $expression CAPTURING $output RETURNING $errors PASSLIST $listname RTNLIST $variable PASSDATA $variable RTNDATA $variable"
],
"description": "The EXECUTE or PERFORM statement allows the currently executing program to pause and execute another program. This may be any program, including another jBASE BASIC program or a jBASE command."
},
"PERFORM": {
"prefix": "PERFORM",
"body": [
"PERFORM $expression"
],
"description": "The EXECUTE or PERFORM statement allows the currently executing program to pause and execute another program. This may be any program, including another jBASE BASIC program or a jBASE command."
},
"PERFORM All": {
"prefix": "PERFORM",
"body": [
"PERFORM $expression CAPTURING $output RETURNING $errors PASSLIST $listname RTNLIST $variable PASSDATA $variable RTNDATA $variable"
],
"description": "The EXECUTE or PERFORM statement allows the currently executing program to pause and execute another program. This may be any program, including another jBASE BASIC program or a jBASE command."
},
"EXIT": {
"prefix": "EXIT",
"body": [
"EXIT($1)"
],
"description": "The EXIT statement halts the execution of a program and returns a numeric exit code to the parent process."
},
"EXTRACT": {
"prefix": "EXTRACT",
"body": [
"EXTRACT($DynArr, $attr)"
],
"description": "The EXTRACT function is an alternative method of accessing values in a dynamic array other than using the <n,n,n> syntax. "
},
"EXTRACT Value": {
"prefix": "EXTRACT",
"body": [
"EXTRACT($DynArr, $attr, $value)"
],
"description": "The EXTRACT function is an alternative method of accessing values in a dynamic array other than using the <n,n,n> syntax. "
},
"EXTRACT SubValue": {
"prefix": "EXTRACT",
"body": [
"EXTRACT($DynArr, $attr, $value, $subvalue)"
],
"description": "The EXTRACT function is an alternative method of accessing values in a dynamic array other than using the <n,n,n> syntax. "
},
"FADD": {
"prefix": "FADD",
"body": [
"FADD($expression1, $expression2)"
],
"description": "This function performs floating point addition of two numeric values. "
},
"FDIV": {
"prefix": "FDIV",
"body": [
"FDIV($expression1, $expression2)"
],
"description": "This function performs floating point division on two numeric values."
},
"FIELD": {
"prefix": "FIELD",
"body": [
"FIELD($string, $delimiter, $occurrence)"
],
"description": "This function returns a multi-character delimited field from within a string."
},
"FIELD Extract Count": {
"prefix": "FIELD",
"body": [
"FIELD($string, $delimiter, $occurrence, $extractCount)"
],
"description": "This function returns a multi-character delimited field from within a string."
},
"FILELOCK": {
"prefix": "FILELOCK",
"body": [
"FILELOCK filevar LOCKED $lock_statements ON ERROR $error_statements"
],
"description": "The FILELOCK statement is used to acquire a lock on an entire file. This prevents other users from updating the file until the program releases it."
},
"FILEINFO": {
"prefix": "FILEINFO",
"body": [
"FILEINFO($file_variable, $key)"
],
"description": "Use the FILEINFO function to return information about the specified file variable."
},
"FILEUNLOCK": {
"prefix": "FILEUNLOCK",
"body": [
"FILEUNLOCK $file_variable ON ERROR $statements"
],
"description": "This statement is used to release a file lock set by the FILELOCK statement."
},
"FIND": {
"prefix": "FIND",
"body": [
"FIND $expression1 IN $Var1 SETTING $Var2 THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "The FIND statement allows the location of a specified string within a dynamic array."
},
"FINDSTR": {
"prefix": "FINDSTR",
"body": [
"FIND $expression1 IN $Var1 SETTING $Var2 THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "The FINDSTR statement locates a string as a substring of a dynamic array element. It is similar in operation to the FIND statement."
},
"FORMLIST": {
"prefix": "FORMLIST",
"body": [
"FORMLIST $variable1 TO $variable2"
],
"description": "The FORMLIST statement creates an active select list from a dynamic array."
},
"FLUSH": {
"prefix": "FLUSH",
"body": [
"FLUSH $file_variable THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "Writes all the buffers for a sequential I/O file immediately. Normally, sequential I/O uses buffering for input/output operations, and writes are not immediately flushed."
},
"DIR": {
"prefix": "DIR",
"body": [
"DIR($filename)"
],
"description": "The DIR() function is used to return information about a file."
},
"COLLECTDATA": {
"prefix": "COLLECTDATA",
"body": [
"COLLECTDATA $variable"
],
"description": "The COLLECTDATA statement is used to retrieve data passed from the PASSDATA clause of an EXECUTE statement."
},
"COMMON": {
"prefix": "COMMON",
"body": [
"COMMON$1"
],
"description": "The COMMON statement declares a list of variables and matrices that can be shared among various programs. There can be many common areas including a default, unnamed common area. The statement takes the general form:"
},
"DELETE": {
"prefix": "DELETE",
"body": [
"DELETE $variable,$expression"
],
"description": "This statement is used to delete a record from a jBASE file."
},
"DELETE All": {
"prefix": "DELETE",
"body": [
"DELETE $variable,$expression SETTING $setvar ON ERROR $statements"
],
"description": "This statement is used to delete a record from a jBASE file."
},
"GROUP": {
"prefix": "GROUP",
"body": [
"GROUP($subject, $delimiter, $first_field, $num_to_extract)"
],
"description": "The GROUP function is equivalent to the FIELD function."
},
"DELETEU": {
"prefix": "DELETEU",
"body": [
"DELETEU $variable,$expression"
],
"description": "The DELETEU statement is used to delete a record without releasing the update record lock set by a previous READU statement."
},
"DELETEU All": {
"prefix": "DELETEU",
"body": [
"DELETEU $variable,$expression SETTING $setvar ON ERROR $statements"
],
"description": "The DELETEU statement is used to delete a record without releasing the update record lock set by a previous READU statement."
},
"DIM": {
"prefix": "DIM",
"body": [
"DIM $variable($numbers)"
],
"description": "The DIM statement is used to declare arrays to the compiler before referencing."
},
"DYNTOXML": {
"prefix": "DYNTOXML",
"body": [
"DYNTOXML($array, $xsl, $result)"
],
"description": "This function converts an array to an xml representation of the array. An optional transform may be included as a second argument."
},
"EBCDIC": {
"prefix": "EBCDIC",
"body": [
"EBCDIC($expression)"
],
"description": "This function converts all the characters in an expression from the ASCII character set to the EBCDIC character set."
},
"ENTER": {
"prefix": "ENTER",
"body": [
"ENTER $name"
],
"description": "The ENTER statement unconditionally passes control to another executable program. "
},
"FMT": {
"prefix": "FMT",
"body": [
"FMT($var, $code)"
],
"description": "This function is useful for formatting data for output, according to a defined mask."
},
"FSUB": {
"prefix": "FSUB",
"body": [
"FSUB($expression1, $expression2)"
],
"description": "The FSUB function performs floating-point subtraction on two numeric values."
},
"GES": {
"prefix": "GES",
"body": [
"GES($array1, $array2)"
],
"description": "The function is used to test if elements of one dynamic array are greater than or equal to corresponding elements of another dynamic array."
},
"GET": {
"prefix": "GET",
"body": [
"GET $Var,$length SETTING $Count FROM $Device UNTIL $TermChars RETURNING $TermChar WAITING $Timeout THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "The GET statement reads a block of data directly from a device."
},
"GETCWD": {
"prefix": "GETCWD",
"body": [
"GETCWD($Var)"
],
"description": "This function returns the current working directory of the program, which is normally the directory in which execution of the program occurred but possibly changed using the CHDIR function."
},
"GETENV": {
"prefix": "GETENV",
"body": [
"GETENV($expression, $variable)"
],
"description": "All processes have an environment associated with them that contains a number of variables indicating the state of various parameters. The GETENV function allows a program to determine the value of any of the environment variables associated with it."
},
"GETLIST": {
"prefix": "GETLIST",
"body": [
"GETLIST $listname TO $variable1 SETTING $variable2 THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "GETLIST allows the program to retrieve a previously stored list (perhaps created with the SAVE-LIST command), into a variable."
},
"GETUSERGROUP": {
"prefix": "GETUSERGROUP",
"body": [
"GETUSERGROUP($uid)"
],
"description": "For UNIX, the jBC function GETUSERGROUP returns the group number for the user ID specified by @uid."
},
"GETX": {
"prefix": "GETX",
"body": [
"GETX $Var,$length SETTING $Count FROM $Device UNTIL $TermChars RETURNING $TermChar WAITING $Timeout THEN",
"\t$then_statements",
"END ELSE",
"\t$else_statements",
"END"
],
"description": "The GETX statement reads a block of data (in ASCII hexadecimal format) directly from a device. This can take the general form:"
},
"GOSUB": {
"prefix": "GOSUB",
"body": [
"GOSUB $label"
],
"description": "The GOSUB statement causes execution of a local subroutine, after which execution will continue with the next line of code."
},
"HEADING": {
"prefix": "HEADING",
"body": [
"HEADING $expression"
],
"description": "HEADING halts all subsequent output to the terminal at the end of each page. The statement evaluates and displays an expression at the top of each page. Current output sent to the terminal, is paused until entry of a carriage return at the terminal - unless the N option is specified."
},
"HEADINGE": {
"prefix": "HEADINGE",
"body": [
"HEADINGE $expression"
],
"description": "HEADING halts all subsequent output to the terminal at the end of each page. The statement evaluates and displays an expression at the top of each page. Current output sent to the terminal, is paused until entry of a carriage return at the terminal - unless the N option is specified. The HEADINGE statement is the same as the HEADING statement, which causes a page eject with the HEADING statement."
},
"HEADINGN": {
"prefix": "HEADINGN",
"body": [
"HEADINGN $expression"
],
"description": "HEADING halts all subsequent output to the terminal at the end of each page. The statement evaluates and displays an expression at the top of each page. Current output sent to the terminal, is paused until entry of a carriage return at the terminal - unless the N option is specified. The HEADINGN statement is the same as the HEADING statement, and suppresses the page eject."
},
"HUSH": {
"prefix": "HUSH",
"body": [
"HUSH $expression"
],
"description": "The HUSH statement controls character echo of input and output in programs and procs. HUSH also affects output to a COMO file."
},
"INDEX": {
"prefix": "INDEX",
"body": [
"INDEX($subject, $search, $occurrence)"
],
"description": "The INDEX function will return the position of a character or characters within another string."
},
"ICONV": {
"prefix": "ICONV",
"body": [
"ICONV($subject, $convcode)"
],
"description": "The ICONV() function converts data in external form such as dates to their internal form."
},
"ICONVS": {
"prefix": "ICONVS",
"body": [
"ICONVS($DynArr, $conversion)"
],
"description": "This function converts each element of a dynamic array to a specified internal storage format."
},
"IF Then": {
"prefix": "IF",
"body": [
"IF $1 THEN",
"\t$2",
"END"
],
"description": "IF / THEN"
},
"IF Then/Else": {
"prefix": "IF",
"body": [
"IF $1 THEN",
"\t$2",
"END ELSE",
"\t$3",
"END"
],
"description": "IF / ELSE"
},
"IFS": {
"prefix": "IFS",
"body": [
"IFS($dynamic_array, $true_array, $false_array)"
],
"description": "The function returns a dynamic array whose elements are chosen individually from one of two dynamic arrays based on the contents of a third dynamic array."
},
"INPUTCLEAR": {
"prefix": "INPUTCLEAR",
"body": [
"INPUTCLEAR"
],
"description": "The INPUTCLEAR statement clears the type-ahead buffer. It is useful in situations where the user may have pressed the carriage return key several times prior to reaching an INPUT that requires attention."
},
"INPUTNULL": {
"prefix": "INPUTNULL",
"body": [
"INPUTNULL $expression"
],
"description": "The INPUTNULL statement allows the definition of a character that will allow a null input to be seen by the INPUT@ statement."
},
"INS": {
"prefix": "INS",
"body": [
"INS $expression BEFORE $Var<$attr, $value, $subvalue>"
],
"description": "The INS statement allows the insertion of elements into a dynamic array."
},
"INSERT": {
"prefix": "INSERT",
"body": [
"INSERT($DynArr, $attr, $value, $subvalue; $expression)"
],
"description": "INSERT is the function form of the INS statement, with preference given to the use of INS."
},
"INT": {
"prefix": "INT",
"body": [
"INT($expression)"
],
"description": "The INT() function returns the floor of a numeric value."
},
"ISALPHA": {
"prefix": "ISALPHA",
"body": [
"ISALPHA($expression)"
],
"description": "The function will check that the expression consists of entirely alphabetic characters."
},
"ISALNUM": {
"prefix": "ISALNUM",
"body": [
"ISALNUM($expression)"
],
"description": "The function will check that the expression consists of entirely alphanumeric characters."
},
"ISCNTRL": {
"prefix": "ISCNTRL",
"body": [
"ISCNTRL($expression)"
],
"description": "The ISCNTRL() function will check that the expression consists entirely of control characters."
},
"ISDIGIT": {
"prefix": "ISDIGIT",
"body": [
"ISDIGIT($expression)"
],
"description": "The ISDIGIT function will check that the expression consists of entirely numeric characters."
},
"ISLOWER": {
"prefix": "ISLOWER",
"body": [
"ISLOWER($expression)"
],
"description": "The ISLOWER function will check that the expression consists of entirely lower case characters. The function takes the general form: "
},
"ISPRINT": {