UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
Parameter Description 1-76 UniBasic Commands Reference in_addr The buffer that receives the address of the incoming connection. If NULL, it will return nothing. in_name The variable that receives the name of the incoming connection. If NULL, it will return nothing. socket_handle The handle to the newly created socket on which the actual connection will be made. The server will use readSocket(), writeSocket(), and so forth, with this handle to commuinicate with the client. The following table describes the status of each return code. Return Code Status 0 Success. acceptConnection Parameters (continued) Non-zero See Socket Function Error Return Codes. acceptConnection Return Codes
ACOS Syntax ACOS(expr) Description The UniBasic ACOS function returns the trigonometric arc cosine (inverse cosine) of a numeric expression in degrees. expr must be a value between -1 and +1. ACOS returns a value expressed as the degree of the arc cosine of the input, which ranges from 0 to 180. If expr evaluates to a value outside the range of -1 to +1, UniData displays an error message and returns 0 as the result. With null value handling on, the result of any mathematical operation, function, or comparison involving the null value is the null value. Therefore, ACOS returns the null value when expr is the null value. Examples In the following example, the program statement assigns 60, the arc cosine of 0.5, to ARCCOS: ARCCOS = ACOS(0.5) In the next example, the program statement prints out the arc cosine of -0.5, which is 120: PRINT ACOS(-0.5) Related Commands ASIN, ATAN, COS, SIN, TAN ACOS 1-77
- Page 19 and 20: ! ! is a synonym for the * and REM
- Page 21 and 22: #< #< is a synonym for the GE relat
- Page 23 and 24: $BASICTYPE Syntax $BASICTYPE "param
- Page 25 and 26: $DEFINE Syntax $DEFINE var Descript
- Page 27 and 28: In the next example, when you compi
- Page 29 and 30: Example In the following example, t
- Page 31 and 32: Parameters The following table desc
- Page 33 and 34: $UNDEFINE Syntax $UNDEFINE var Desc
- Page 35 and 36: * Syntax expr * expr Synonyms !, RE
- Page 37 and 38: *= Syntax var *= expr Description T
- Page 39 and 40: += Syntax var += expr Description T
- Page 41 and 42: -= Syntax var -= expr Description T
- Page 43 and 44: = Syntax var /= expr Description Th
- Page 45 and 46: ^ Syntax expr1^expr2 Synonym ** Des
- Page 47: < is a synonym for the LT (less tha
- Page 50 and 51: = 1-55 UniBasic Commands Reference
- Page 52 and 53: =< 1-57 UniBasic Commands Reference
- Page 54 and 55: 1-59 UniBasic Commands Reference >
- Page 56 and 57: @ Syntax @(col.expr [,row.expr]) @(
- Page 58 and 59: 1-63 UniBasic Commands Reference Op
- Page 60 and 61: Examples In the following example,
- Page 62 and 63: [] Syntax 1-67 UniBasic Commands Re
- Page 64 and 65: {} {} is a synonym for the CALCULAT
- Page 66 and 67: Note: You can use the ECL ON.ABORT
- Page 68 and 69: ABS Syntax ABS(expr) Description Th
- Page 72 and 73: ACTIVATEKEY Syntax ACTIVATEKEY , [
- Page 74 and 75: STATUS Code Example 1-80 UniBasic C
- Page 76 and 77: Parameters 1-82 UniBasic Commands R
- Page 78 and 79: Parameter Description format 1 - PE
- Page 80 and 81: 1-86 UniBasic Commands Reference Re
- Page 82 and 83: amInitialize Syntax 1-88 UniBasic C
- Page 84 and 85: amReceiveMsg Syntax amReceiveMsg(hS
- Page 86 and 87: amReceiveRequest Syntax amReceiveRe
- Page 88 and 89: amSendMsg Syntax 1-94 UniBasic Comm
- Page 90 and 91: amSendRequest Syntax amSendRequest(
- Page 92 and 93: amSendResponse Syntax amSendRespons
- Page 94 and 95: amTerminate Syntax amTerminate(hSes
- Page 96 and 97: analyzeCertificate Syntax analyzeCe
- Page 98 and 99: AND Syntax expr1 AND expr2 Synonym
- Page 100 and 101: ASIN Syntax ASIN(expr) Description
- Page 102 and 103: Related Command UniData TERM - For
- Page 104 and 105: BITAND Syntax BITAND(num.expr1,num.
- Page 106 and 107: BITOR Syntax BITOR(num.expr1,num.ex
- Page 108 and 109: BPIOCP Syntax BPIOCP Description Th
- Page 110 and 111: BPIOCPN Syntax BPIOCPN Description
- Page 112 and 113: BREAK Syntax BREAK [KEY] {ON | OFF
- Page 114 and 115: BYTELEN Syntax BYTELEN (string) Des
- Page 116 and 117: Example In the following example, t
- Page 118 and 119: Parameters The following table desc
Parameter Description<br />
1-76 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
in_addr The buffer that receives the address of the incoming connection. If<br />
NULL, it will return nothing.<br />
in_name The variable that receives the name of the incoming connection. If<br />
NULL, it will return nothing.<br />
socket_handle The handle to the newly created socket on which the actual connection<br />
will be made. The server will use readSocket(), writeSocket(), and so<br />
forth, with this handle to commuinicate with the client.<br />
The following table describes the status of each return code.<br />
Return Code Status<br />
0 Success.<br />
acceptConnection Parameters (continued)<br />
Non-zero See Socket Function Error Return Codes.<br />
acceptConnection Return Codes