home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1998 February / PCOnline_02_1998.iso / filesbbs / dos / page_123.exe / PAGE_123.EXE / DOC / FS_PL.DOC < prev    next >
Encoding:
Text File  |  1997-10-22  |  30.8 KB  |  819 lines

  1. ──────────────────────────────────────────────────────────────────────────────
  2.                              ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  3.                        ▄▄▄▄▄▀                 ▀▄▄▄▄
  4.    ▄██████       ▄▀▀▀▀▀          ▄█████▄           ▀▀▀▀▀▀▄
  5.    ██▄▄▄▄  ▄█▀▀▀█▄ ▄█████▄ █████ ██▄▄▄▄  ▄█████▄ ██▀▀▀█ ▐██▌▀██▀▀▀█ █████
  6.    ██▀▀▀█▀▀██▄▄▄██ ██▄▄▄▄▄  ▐█▌   ▀▀▀▀██ ██      ██▀█▀▀  ██  ██▀▀▀▀▄ ▐█▌
  7.    ██  █   ██▀▀▀██ ▄▄▄▄▄▄█  ▐█▌  ▀█████▀ ▀█████▀ ██  ▀█ ▐██▌ ██     █▐█▌
  8.         ▀▄▄                                                      ▄▄▀
  9.            ▀▀▄▄▄▄                                         ▄▄▄▄▀▀▀
  10.                  ▀▄▄▄▄▄     ▄█▀ ██▀▀▀█ ██    ▀█▄   ▄▄▄▄▄▄▀
  11.                        ▀▀▀▀▀██  ██▀▀▀▀ ██     ██▀▀▀
  12.                             ▀█▄ ██     █████ ▄█▀
  13.  
  14.                         (c)1996/97 Stefan Dietzel
  15. -------────────────────────────────────────────────────────[Version: 1.23]────
  16.  
  17.  
  18. FastScript Programing Language (PL)
  19. ====================================
  20. FastScript(PL) is a powerful real-time compiler-extension for
  21. FastScript. With FastScript (PL) you are able to write
  22. online-programs directly in the script-language FastScript.
  23. Therefore many commands of a modern programing language are included.
  24. FastScript(PL) is a mixture between Pascal and Assembler.
  25. The commands are understandable and no unclear abbreviations are used.
  26. The command-names are orientated on pascal and the program-style is similar
  27. to assembler. With this combination you are able to write one part of the
  28. program more abstrac and the other part you can file out up to the smallest
  29. detail.
  30. If you are missing commands for the harddisk-access and so on, you have
  31. to consider that the secutity of FastScript(PL) towards the sysop
  32. of the bbs-system was a major part in my thoughts when I have developed
  33. this programing language.
  34. In later versions I will include some "data-save"-functions, but now
  35. I have to plan how I can include them without creating a security-leak
  36. for the bbs-system (and the harddisk of the sysop).
  37.  
  38.  
  39. Commands:
  40. ========
  41.  
  42. Declaration of variables:
  43. -------------------------
  44. VAR
  45. CLOSEVAR
  46.  
  47. Fundamental operations of arithmetic:
  48. -------------------------------------
  49. INCREMENT
  50. DECREMENT
  51. MULTIPLY
  52. DIVIDE
  53.  
  54. Assignment:
  55. -----------
  56. EQUATE
  57.  
  58. Input:
  59. ------
  60. READ
  61. READLN
  62.  
  63. Output:
  64. ---------
  65. WRITE
  66. WRITELN
  67.  
  68. Querys and loops:
  69. -----------------
  70. IF
  71. WHILE
  72.  
  73. Programsubdivision/Blocks:
  74. --------------------------
  75. PROCEDURE
  76. GOTO
  77. STOP
  78.  
  79. Stringworking:
  80. --------------
  81. UP
  82. DELSPACE
  83. DELSTRING
  84. INSSTRING
  85. POSSTRING
  86. LENGTHSTRING
  87.  
  88. Calculating-functions:
  89. ----------------------
  90. SIN
  91. COS
  92. TAN
  93. ARCTAN
  94. LN
  95. EXP
  96. SQR
  97. SQRT
  98.  
  99. Bit-Operators
  100. -------------
  101. OR
  102. XOR
  103. AND
  104. NOT
  105.  
  106. Screen-Commands
  107. ---------------
  108. WHEREX
  109. WHEREY
  110.  
  111.  
  112. Explanation of the commands:
  113. ----------------------------
  114.  
  115. Declaration of variables:
  116. -------------------------
  117. VAR
  118. ---
  119. This command is needed for creating and declarating new variables.
  120. Syntax: VAR VARNAME:VARTYP
  121.         VARNAME = The name which addresses the variable.
  122.         VARTYP = There are existing the following variable-types:
  123.                  STRING       (character string)
  124.                  CHAR         (one character of the ASCII-table)
  125.                  INTEGER      (whole number -2147483648..2147483647)
  126.                  REAL         (a comma number 2.9e-39..1.7e38)
  127. Information: You can max. create per VAR command one variable.
  128.              If you want to create more variables you have to use
  129.              the VAR command several times.
  130. Important: You can max. create 40 variables per vartiable-type.
  131.            If you need one more variable you can close another with
  132.            the CLOSEVAR command.
  133.            You can also close systemvariables. There are existing the
  134.            following systemvariables:
  135.  
  136.          Variablename    Variabletyp    Content
  137.          $userlevel      Integer        Level of the actual homepagevisitor
  138.          $username       String         Name of the actual homepageuser
  139.          $systemdate     String         Actual Date
  140.          $systemtime     String         Actual Time
  141.          $baudrate       String         Connectrate of the homepage-visitor
  142.          $bbsname        String         Name of the bbs-system where STD-PAGE
  143.                                         (and your homepage) is installed.
  144.          $sysopname      String         Name des Mailbox-Sysops, in welcher
  145.                                         STD-PAGE (und Ihre Homepage) ablaufen.
  146.          $pi             Real           The number of Pi (3.141...)
  147. Example:
  148.         VAR TestVariable:STRING
  149.         VAR SecondVariable:INTEGER
  150.  
  151. With the two commands above you create two variables with the addressnames
  152. TestVariable and SecondVariable.
  153. The variables have the following types:  TestVariable = STRING
  154.                                          SecondVariable = INTEGER
  155. If you want to access one variable it does not matter if you write the
  156. name with big or small letters.
  157. See also: CLOSEVAR
  158.  
  159.  
  160. CLOSEVAR
  161. --------
  162. With this command you can release/close variables.
  163. Syntax: CLOSEVAR VARNAME
  164. Remark: You also can close systemvariables. There contents will be lost until
  165.         the user stays in your homepage. If he starts your page from new on
  166.         the systemvariables will be created once more.
  167.         With one CLOSEVAR command you only can close one variable
  168.         (same as VAR).
  169. Example:  CLOSEVAR TestVariable
  170.           CLOSEVAR SecondVariable
  171. See also: VAR
  172.  
  173.  
  174. Fundamental operations of arithmetic:
  175. -------------------------------------
  176. INCREMENT
  177. ---------
  178. With this command you can either increase the content of an INTEGER or
  179. REAL variable or you can add to a STRING variable another string.
  180. Syntax: INCREMENT VARNAME,DATA
  181.         VARNAME = The name of the variable which content should be increased.
  182.         DATA = The data could be a direct value or another variable whose
  183.                content should be interpretated like a direct value.
  184. Information: This function is comparable with the PASCAL-expression INC
  185.              or the PASCAL-expression VARNAME:=VARNAME+DATA;
  186. Example:  VAR TestVariable:STRING
  187.           VAR SecondVariable:INTEGER  
  188.  
  189.           INCREMENT TestVariable,Hallo
  190.           INCREMENT TestVariable,!       {TestVariable now contains: Hallo!}
  191.           INCREMENT SecondVariable,10
  192.           INCREMENT SecondVariable,101   {ZweiteVariable now contains: 111)
  193. See also: DECREMENT
  194.  
  195.  
  196. DECREMENT
  197. ---------
  198. With this command you can reduce the content of a REAL or INTERGER variable.
  199. Syntax: DECREMENT VARNAME,DATA
  200.         VARNAME = The name of the variable which content should be reduced.
  201.         DATA = The data could be a direct value or another variable whose
  202.                content should be interpretated like a direct value.
  203. Information: This function is comparable with the PASCAL-expression DEC.
  204. Example:  VAR SecondVariable:INTEGER
  205.  
  206.           DECREMENT SecondVariable,10  {The value of the SecondVariable has
  207.                                         be reduced by 10.}
  208. See also: INCREMENT
  209.  
  210.  
  211. MULTIPLY
  212. --------
  213. With this command you can multiply a REAL or INTERGER variable.
  214. Syntax: MULTIPLY VARNAME,DATA
  215.         VARNAME = The name of the variable which content should be multiplied
  216.                   with the content of DATA.
  217.         DATA = The data could be a direct value or another variable whose
  218.                content should be interpretated like a direct value.
  219. Information: This function is comparable with the PASCAL-expression
  220.              VARNAME:=VARNAME*DATA;
  221. Example:  VAR SecondVariable:INTEGER
  222.  
  223.           MULTIPLY SecondVariable,10  {The content of SecondVariable
  224.                                        will be multiplied with 10.}
  225. See also: DIVIDE
  226.  
  227.  
  228. DIVIDE
  229. ------
  230. With this command you can divide a REAL or INTEGER variable.
  231. Syntax: MULTIPLY VARNAME,DATA
  232.         VARNAME = The name of the variable which content should be divided
  233.                   with the content of DATA.
  234.         DATA = The data could be a direct value or another variable whose
  235.                content should be interpretated like a direct value.
  236. Information: This function is comparable with the PASCAL-expressions
  237.              VARNAME:=VARNAME / DATA; or VARNAME:=VARNAME div DATA;
  238. Example: VAR SecondVariable:INTEGER
  239.  
  240.          DIVIDE SecondVariable,10  {The content of SecondVariable will be
  241.                                      divided by 10.}
  242. See also: MULTIPLY
  243.  
  244.  
  245. Assignment:
  246. -----------
  247. EQUATE
  248. ------
  249. With this command you can assign to one variable the value of another
  250. variable or the value of a direct data.
  251. Syntax: EQUATE VARNAME,DATA
  252.         VARNAME = The name of the variable to which should be assigned
  253.                   the content of DATA.
  254.         DATA = The data could be a direct value or another variable whose
  255.                content should be interpretated like a direct value.
  256. Information: This function is comparable with the PASCAL-expression
  257.              VARNAME:=DATA;
  258.              By using this command you can also carry out type-conversions.
  259.              Example: If you have a variable S (=STRING) and a variable
  260.              R (REAL) you can convert R to S by the following command:
  261.              EQUATE S,R
  262.              Now the string-variable S contains the string of the arithmetic
  263.              expression of R (REAL). Surely, you can also use EQUATE for other
  264.              type-conversions.
  265. Beispiel:  VAR TestVariable:STRING
  266.            VAR SecondVariable:INTEGER
  267.  
  268.            EQUATE TestVariable,This is a small test
  269.            {The string-variable TestVariable now contains the value
  270.             "This is a small test".}
  271.  
  272.            EQUATE SecondVariable,111
  273.            {The integer-variable SecondVariable now contains the value 111.}
  274.  
  275.            EQUATE TestVariable,SecondVariable
  276.            {The string-variable TestVariable nor contains the value of
  277.            SecondVariable. TestVariable="111"}
  278.  
  279.  
  280. Input:
  281. ------
  282. READ / READLN
  283. -------------
  284. By using this command you can ask the user for a data or value of
  285. a variable.
  286. Syntax: READ VARNAME
  287.         READLN VARNAME
  288. Information:   This function is comparable with the PASCAL-expression
  289.                READ and READLN.
  290.                Unlike READ the command READLN carries out a carriage return
  291.                and a line feed after the user has pressed enter (like
  292.                WRITE and WRITELN).
  293. Beispiel:  VAR TestVariable:STRING
  294.            VAR SecondVariable:INTEGER
  295.  
  296.            READ TestVariable
  297.            READLN TestVariable
  298.            READ SecondVariable
  299.            READLN SecondVariable
  300. See also: WRITE / WRITELN
  301.  
  302.  
  303. Output:
  304. -------
  305. WRITE / WRITELN
  306. ---------------
  307. By using this command you can make outputs to the display screen.
  308. Syntax: WRITE Output-text or &VARNAME& or bith
  309.         WRITELN Output-text or &VARNAME& or both
  310. Information:   This function is comparable with the PASCAL-expression
  311.                WRITE and WRITELN.
  312.                Unlike WRITE the command WRITELN carries out a carriage return
  313.                and a line feed after the outpur has been finished (like
  314.                READ and READLN).
  315.                With the above-mentioned command you also can output
  316.                the values of variables. The only thing you have to do
  317.                is to write the variable-name surrounded by the & char
  318.                (e.g. &VARNAME&) into your output-text. This name
  319.                (incl. the & chars) will be replaced by the content of the
  320.                variable.
  321.  
  322. Example:  VAR TestVariable:STRING
  323.           VAR SecondVariable:INTEGER
  324.  
  325.           EQUATE TestVariable,Stefan Dietzel
  326.           WRITELN Hello, &TestVariable&. Nice to meet you.
  327.           {Output: Hello, Stefan Dietzel. Nice to meet you.}
  328.  
  329.           EQUATE SecondVariable,10
  330.           SIN SecondVariable,SecondVariable
  331.           WRITELN The result is &SecondVariable&.
  332.           {Output: The result is 0.1736481777.}
  333. See also: REAL / READLN
  334.  
  335.  
  336. Querys and loops:
  337. -----------------
  338. IF
  339. --
  340. With this command you can form case querys.
  341. Syntax: IF VARNAME,OPERATOR,DATA,ACTION
  342.         VARNAME = The name of the variable which content should be checked
  343.                   out for something.
  344.         OPERATOR = There are existing the following check-operators:
  345.                    <     smaller
  346.                    >     greater
  347.                    =     equal
  348.                    !     not equal
  349.         DATA = The data could be a direct value or another variable whose
  350.                content should be interpretated like a direct value.
  351.         ACTION = A FastScript or FastScript(PL) command, which should be
  352.                  carried out if the VARNAME come true with the operator
  353.                  an the data.
  354. Information:   If you want to hand over a direct value instead of a variable
  355.                at the position of DATA you have so set the direct value
  356.                into quotation marks (like: IF A,=,"HELLO",write Hi).
  357. Example:    IF $userlevel,<,2,end
  358.             {If the actual userlevel is smaller than 2 the homepage will
  359.             automatically be finished.}
  360.  
  361.             IF $userlevel,>,2,procedure test
  362.             {If the actual userlevel is greater than 2 the sub-script
  363.             TEST.SCR will be called.}
  364.  
  365.             If $username,=,"STEFAN DIETZEL",write Hi, Creator.
  366.             {If the username = STEFAN DIETZEL the text "Hi, Creator." will
  367.             be diplayed}
  368. see also: PROCEDURE / WHILE
  369.  
  370. WHILE
  371. -----
  372. With the command WHILE you can realise loops (and counting loops).
  373. Syntax: WHILE VARNAME,OPERATOR,DATA,ACTION
  374.         VARNAME = The name of the variable which content should be checked
  375.                   out for something.
  376.         OPERATOR = There are existing the following check-operators:
  377.                    <     smaller
  378.                    >     greater
  379.                    =     equal
  380.                    !     not equal
  381.         DATA = The data could be a direct value or another variable whose
  382.                content should be interpretated like a direct value.
  383.         ACTION = A FastScript or FastScript(PL) command, which should be
  384.                  carried out if the VARNAME come true with the operator
  385.                  an the data.
  386. Information:   If you want to hand over a direct value instead of a variable
  387.                at the position of DATA you have so set the direct value
  388.                into quotation marks
  389.                (like: WHILE A,!,"HELLO",write Say hello to me.).
  390. Example :  VAR TestVariable:STRING
  391.            VAR Password:STRING
  392.            WHILE TestVariable,!,Password,Procedure ASK_PW
  393.            {While the content of TestVariable is not equal with the
  394.            content of Password the Procedure PW_FRAGN
  395.            (File: ASK_PW.SCR) will be called.
  396.  
  397.            WHILE TestVariable,!,"Hello",readln TestVariable
  398.            {While TestVariable is not equal to the string Hello the user
  399.            will be asked for a new string.}
  400. See also: IF / PROCEDURE
  401.  
  402.  
  403. Programsubdivision/Blocks:
  404. --------------------------
  405. PROCEDURE
  406. ---------
  407. This command calls another script-file in which the bevor created variable
  408. are active an can be used (by using the command LOAD all variables
  409. will be closed).
  410. Syntax: PROCEDURE SCRIPTNAME
  411.         SCRIPTNAME = Name of the script-file which should be called.
  412. Information:   After ending a with PROCEDURE called script-file
  413.                FastScript(PL) will return back into the calling script-file.
  414.                If you want to stop the work out of a PROCEDURE you can use
  415.                the command STOP. Do not use END in a PROCEDURE. The END-
  416.                command will close the whole homepage.
  417. Example:   PROCEDURE TEST
  418.            {The script-file TEST.SCR will be called}
  419.  
  420.            VAR TestVariable:STRING
  421.            VAR Password:STRING
  422.            WHILE TestVariable,!,Password,Procedure ASK_PW
  423.            {While the content of TestVariable is not equal with the
  424.            content of Password the script-file PW_FRAGN.SCR will be called.
  425. See also: STOP
  426.  
  427. GOTO
  428. ----
  429. This command can be used for a subdivision of a script-file into blocks.
  430. With the help of loops and case sensitive querys (while/if) you can
  431. create a controlling algorithm for jumpint to different blocks at
  432. different situations.
  433. Syntax:    :jumpmark
  434.             ....
  435.             ....
  436.             ....
  437.            GOTO jumpmark
  438. Information: This command is important for working out a specific
  439.              Script-file until a specific situation.
  440. Example:     VAR Input:CHAR
  441.              :Startingmark
  442.                writeln Hi, &$username&.
  443.                write Do you want to be greeted again? (Y/N)
  444.                readln Input
  445.                up Input
  446.              if Input,=,"J",GOTO Startingmark
  447.              {You can also use the GOTO command without IF or WHILE.}
  448. See also: STOP / IF / WHILE
  449.  
  450. STOP
  451. ----
  452. This command can be used for ending script-files which have been called
  453. with the command PROCEDURE.
  454. Syntax: STOP
  455. Information:   If you want to go back to the script-file which has called
  456.                the actual script with the command PROCEDURE the command
  457.                STOP is the only command you should use. The STOP command
  458.                can be used stand alone or in combination with IF and WHILE.
  459.                Do not use the command END if you do not want to exit your
  460.                complete homepage.
  461. Example:  SCHREIBE Hi, the actual procedure will be ended now!
  462.           STOP
  463. See also: IF / WHILE / GOTO
  464.  
  465.  
  466. Stringworking:
  467. --------------
  468. UP
  469. --
  470. This command changes a string into a big letter-string
  471. (it converts Hello to HELLO).
  472. Syntax: UP VARNAME
  473.         VARNAME = The name of the string-variable, which content should
  474.                   be transformed into a big letter-string.
  475. Examples:   EQUATE TestVariable,This is a short test.
  476.             {Content TestVariable: This is a short test.}
  477.             UP TestVariable
  478.             {Content TestVariable: THIS IS A SHORT TEST.}
  479.  
  480. DELSPACE
  481. --------
  482. This command delets all blank charaters from a string.
  483. Syntax: DELSPACE VARNAME
  484.         VARNAME = The name of the variable which content should be freed
  485.                   from spaces.
  486. Example:   VAR TestVariable:STRING
  487.            EQUATE TestVariable,This is a short test.
  488.            {Content TestVariable: This is a short test.}
  489.            DELSPACE TestVariable
  490.            {Content TestVariable: Thisisashorttest.}
  491.            UP TestVariable
  492.            {Content TestVariable: THISISASHORTTEST.}
  493. See also: UP
  494.  
  495. DELSTRING
  496. ---------
  497. By using this command you can delete a substring from a string.
  498. Syntax: DELSTRING VARNAME,STARTPOSITION,ENDPOSITION
  499.         VARNAME = The name of the string-variable which content should
  500.                   be partly deleted.
  501.         STARTPOSITION = The number of the first charecter which should be
  502.                         deleted (where the deletion should start).
  503.         ENDPOSITION = The number of the last character in the string, which
  504.                       should be deleted (were the deletion should end).
  505. Information: This function is comparable with the PASCAL-expression
  506.              DELETE(varname,startpotision,endposition);
  507. Example:   VAR TestVariable:STRING
  508.            EQUATE TestVariable,This is a short test.
  509.            {Content TestVariable:This is a short Test.}
  510.            DELSTRING TestVariable,11,16
  511.            {Inhalt TestVariable:This is a test.}
  512. See also: INSSTRING
  513.  
  514. INSSTRING
  515. ---------
  516. By using this command you can include a sub-string into another
  517. string at a defined position.
  518. Syntax: INSSTRING VARNAME,POSITION,SUBSTRING
  519.         VARNAME = The variable where the substring should be inserted.
  520.         POSITION = The position at the variable where the substring should
  521.                    start.
  522.         TEILSTRING = The substring which shoud be inserted.
  523. Information: As substring you can also use another variable which you have to
  524.              put between the & char (like WRITE and WRITELN).
  525.              You can aso include a macro like %MS% for a space
  526.              (see pageuser.doc for a complete macro-list).
  527.              Dieser Befehl ist aehnlich dem PASCAL-Befehl INSERT.
  528.              This function is comparable with the PASCAL-command
  529.              INSERT(substring,varname,position);
  530. Example:   VAR TestVariable:STRING
  531.            EQUATE TestVariable,Hello !
  532.            {Content TestVariable:Hello !}
  533.            INSSTRING TestVariable,6,&$username&
  534.            {e.g. contains $username the name STEFAN DIETZEL:
  535.             Content TestVariable:Hello STEFAN DIETZEL!}
  536. See also: DELSTRING
  537.  
  538. POSSTRING
  539. ---------
  540. This command makes ist possible to find a defined substring in
  541. a string-variable
  542. Syntax: POSSTRING VARNAME,SUBSTRING,POSITIONVARIABLE
  543.         VARNAME = STRING-variable where the substring should be searched.
  544.         SUBSTRING = The substring which should be searched in VARNAME.
  545.         POSITIONVARIABLE = A INTEGER-variable in which the position
  546.                            of SUBSTRING in VARNAME should be stored.
  547. Information: If the substring will not be found in VARNAME the value
  548.              of POSITIONVARIABLE will be 0.
  549.              The checkup is depends on big and small letters.
  550.              The substring "this" will not be found in the string
  551.              "This is a test." because the first character is different.
  552.              Therefore you should use the function UP on both strings
  553.              (converts both strings into big letters) before checking.
  554.              This function is comparable with the PASCAL-command
  555.              positionsvariable:=POS(substring,varname);
  556. Example:   VAR TestVariable:STRING
  557.            VAR SecondVariable:INTEGER
  558.            EQUATE TestVariable,This is a small test.
  559.            {Content TestVariable:This is a small test.}
  560.            POSSTRING TestVariable,small,SecondVariable,
  561.            {Content SecondVariable: 11}
  562.  
  563. LENGTHSTRING
  564. ------------
  565. Mit diesem Befehl kann man die Laenge einer Zeichenkette feststellen.
  566. With this command you can detect the length of a string-variable.
  567. Syntax: LENGTHSTRING VARNAME,LENGTHVARIABLE
  568.         VARNAME = String-variable whose string should be detected.
  569.         LENGTHVARIABLE = INTEGER-variable in which the length of VARNAME
  570.                          should be transfered.
  571. Information: This function is comparable with the PASCAL-command
  572.              lengthvariable:=LENGTH(varname);
  573. Example:   VAR TestVariable:STRING
  574.            VAR SecondVariable:INTEGER
  575.            EQUATE TestVariable,This is a small test.
  576.            LENGTHSTRING TestVariable,SecondVariable
  577.            {Content ZweiteVariable: 21}
  578.  
  579.  
  580. Calculating-functions:
  581. ----------------------
  582. SIN
  583. ---
  584. This commands calculates the SINUS of a number.
  585. Syntax:  SIN DATA,VARNAME
  586.          DATA = Number or variable whose sinus should be calculated.
  587.                 ! Important: The unit of DATA must be RAD !
  588.          VARNAME = Variable in which the result should be stored.
  589.                    (VARNAME should be a REAL-type)
  590. Information: This function is comparable with the PASCAL-command
  591.              varname:=SIN(data);
  592. Example:  VAR Result:REAL
  593.           VAR SecondVariable:INTEGER
  594.           EQUATE SecondVariable,10
  595.           {Content ZweiteVariable: 10}
  596.           SIN SecondVariable,Result
  597.           {Content Result: 0.1736481777}
  598. See also: COS / TAN / ARCTAN
  599.  
  600. COS
  601. ---
  602. This commands calculates the COSINUS of a number.
  603. Syntax:  COS DATA,VARNAME
  604.          DATA = Number or variable whose cosinus should be calculated.
  605.                 ! Important: The unit of DATA must be RAD !
  606.          VARNAME = Variable in which the result should be stored.
  607.                    (VARNAME should be a REAL-type)
  608. Information: This function is comparable with the PASCAL-command
  609.              varname:=COS(data);
  610. Example:  VAR Result:REAL
  611.           VAR SecondVariable:INTEGER
  612.           EQUATE SecondVariable,10
  613.           {Contend SecondVariable: 10}
  614.           COS SecondVariable,Result
  615.           {Content Result: 0.984807753}
  616. See also: SIN / TAN / ARCTAN
  617.  
  618. TAN
  619. ---
  620. This commands calculates the TANGENS of a number.
  621. Syntax:  TAN DATA,VARNAME
  622.          DATA = Number or variable whose tangens should be calculated.
  623.                 ! Important: The unit of DATA must be RAD !
  624.          VARNAME = Variable in which the result should be stored.
  625.                    (VARNAME should be a REAL-type)
  626. Information: This function is comparable with the PASCAL-command
  627.              varname:=TAN(data);
  628. Example:  VAR Result:REAL
  629.           VAR SecondVariable:INTEGER
  630.           EQUATE SecondVariable,10
  631.           {Content SecondVariable: 10}
  632.           TAN SecondVariable,Result
  633.           {Content Result: 0.1763269807}
  634. See also: SIN / COS / ARCTAN
  635.  
  636. ARCTAN
  637. ------
  638. This commands calculates the ARCUS-TANGENS of a number.
  639. Syntax:  ARCTAN DATA,VARNAME
  640.          DATA = Number or variable whose arcus-tangens should be calculated.
  641.                 ! Important: The unit of DATA must be RAD !
  642.          VARNAME = Variable in which the result should be stored.
  643.                    (VARNAME should be a REAL-type)
  644. Information: This function is comparable with the PASCAL-command
  645.              varname:=ARCTAN(data);
  646. Example:  VAR Result:REAL
  647.           VAR SecondVariable:INTEGER
  648.           EQUATE SecondVariable,10
  649.           {Content SecondVariable: 10}
  650.           ARCTAN SecondVariable,Result
  651.           {Content Result: 0.1745329252}
  652. See also: SIN / COS / TAN
  653.  
  654. LN
  655. --
  656. By using this command you can calculatr the natural logarithm of a number.
  657. Syntax:  ARCTAN DATA,VARNAME
  658.          DATA = Number or variable whose LN should be calculated.
  659.          VARNAME = Variable in which the result should be stored.
  660.                    (VARNAME should be a REAL-type)
  661. Information: This function is comparable with the PASCAL-command
  662.              varname:=LN(data);
  663. Example:  VAR Result:REAL
  664.           VAR SecondVariable:INTEGER
  665.           EQUATE SecondVariable,10
  666.           {Content ZweiteVariable: 10}
  667.           LN SecondVariable,Ergebnis
  668.           {Content Result: 2.302585093}
  669. See also: EXP
  670.  
  671. EXP
  672. ---
  673. With this command you can calculate the e^x of a number.
  674. Syntax:  EXP DATA,VARNAME
  675.          DATA = Number or variable whose e^x should be calculated.
  676.          VARNAME = Variable in which the result should be stored.
  677.                    (VARNAME should be a REAL-type)
  678. Information: This function is comparable with the PASCAL-command
  679.              varname:=EXP(data);
  680. Beispiel: VAR Result:REAL
  681.           VAR SecondVariable:INTEGER
  682.           EQUATE SecondVariable,10
  683.           {Content SecondVariable: 10}
  684.           EXP SecondVariable,Result
  685.           {Content Result: 22026.4657948017}
  686. See also: LN
  687.  
  688. SQR
  689. ---
  690. You can use this command for squaring a number.
  691. Syntax:  SQR DATA,VARNAME
  692.          DATA = Number or variable which should be squared.
  693.          VARNAME = Variable in which the result should be stored.
  694.                    (VARNAME should be a REAL-type)
  695. Information: This function is comparable with the PASCAL-command
  696.              varname:=SQR(data);
  697. Example:  VAR Result:REAL
  698.           VAR SecondVariable:INTEGER
  699.           EQUATE SecondVariable,10
  700.           {Content SecondVariable: 10}
  701.           SQR SecondVariable,Result
  702.           {Content Result: 100.0}
  703. See also: SQRT
  704.  
  705. SQRT
  706. ----
  707. With this command you can calculate the square root of an argument.
  708. Syntax:  SQRT DATA,VARNAME
  709.          DATA = Number or variable whose square root should be calculated.
  710.          VARNAME = Variable in which the result should be stored.
  711.                    (VARNAME should be a REAL-type)
  712. Information: This function is comparable with the PASCAL-command
  713.              varname:=SQRT(data);
  714. Example:  VAR Result:REAL
  715.           VAR SecondVariable:INTEGER
  716.           EQUATE SecondVariable,10
  717.           {Content SecondVariable: 10}
  718.           SQRT SecondVariable,Result
  719.           {Content Result: 3.1622776602}
  720. See also: SQR
  721.  
  722.  
  723. Boolsche Funktionen
  724. -------------------
  725. OR
  726. --
  727. With this command you can make an or-checking with an INTEGER-variable.
  728. Syntax: OR VARNAME,DATA
  729.         VARNAME = The variablename whose content should checked with OR.
  730.                   The result will be stored in VARNAME.
  731.         DATA = DATA could be a direct number or a variable whose content
  732.                should be interpretated as a number.
  733.         
  734. Information: This function is similar to the PASCAL command
  735.              VARNAME:=VARNAME or DATA;
  736. Example: VAR SecondVariable:INTEGER
  737.           EQUATE SecondVariable,1
  738.           OR SecondVariable,0
  739. See also: XOR, AND, NOT
  740.  
  741. XOR
  742. ---
  743. With this command you can make an xor-checking with an INTEGER-variable.
  744. Syntax: XOR VARNAME,DATA
  745.         VARNAME = The variablename whose content should checked with XOR.
  746.                   The result will be stored in VARNAME.
  747.         DATA = DATA could be a direct number or a variable whose content
  748.                should be interpretated as a number.
  749.         
  750. Information: This function is similar to the PASCAL command
  751.              VARNAME:=VARNAME xor DATA;
  752. Example: VAR SecondVariable:INTEGER
  753.           EQUATE SecondVariable,1
  754.           XOR SecondVariable,0
  755. See also: OR, AND, NOT
  756.  
  757. AND
  758. ---
  759. With this command you can make an and-checking with an INTEGER-variable.
  760. Syntax: AND VARNAME,DATA
  761.         VARNAME = The variablename whose content should checked with AND.
  762.                   The result will be stored in VARNAME.
  763.         DATA = DATA could be a direct number or a variable whose content
  764.                should be interpretated as a number.
  765.         
  766. Information: This function is similar to the PASCAL command
  767.              VARNAME:=VARNAME and DATA;
  768. Example: VAR SecondVariable:INTEGER
  769.           EQUATE SecondVariable,1
  770.           AND SecondVariable,0
  771. See also: OR, XOR, NOT
  772.  
  773. NOT
  774. ---
  775. With this command you can make an not-checking with an INTEGER-variable.
  776. Syntax: NOT VARNAME,DATA
  777.         VARNAME = The variablename whose content should checked with NOT.
  778.                   The result will be stored in VARNAME.
  779.         DATA = DATA could be a direct number or a variable whose content
  780.                should be interpretated as a number.
  781.         
  782. Information: This function is similar to the PASCAL command
  783.              VARNAME:=VARNAME not DATA;
  784. Example: VAR SecondVariable:INTEGER
  785.           EQUATE SecondVariable,1
  786.           NOT SecondVariable,0
  787. See also: OR, XOR, AND
  788.  
  789.  
  790. Screen-Commands
  791. ---------------
  792. WHEREX
  793. ------
  794. With this command you can save the X-coordinate of the actual
  795. cursor-position to a variable.
  796.  
  797. Syntax: WHEREX VARNAME
  798.         VARNAME = The variable in which the x-position should be stored.
  799. Information: This function is similar to the PASCAL command
  800.              VARNAME:=wherex;
  801. Example: VAR SecondVariable:INTEGER
  802.          WHEREX SecondVariable
  803. See also: WHEREY
  804.  
  805. WHEREY
  806. ------
  807. With this command you can save the Y-coordinate of the actual
  808. cursor-position to a variable.
  809.  
  810. Syntax: WHEREY VARNAME
  811.         VARNAME = The variable in which the y-position should be stored.
  812. Information: This function is similar to the PASCAL command
  813.              VARNAME:=wherey;
  814. Example: VAR SecondVariable:INTEGER
  815.          WHEREY SecondVariable
  816. See also: WHEREX
  817.  
  818. ─────────────────────────────────────────────────────────────────────[EOF]────
  819.