UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
Related Commands UniBasic CALL, CHAIN, COMMON, GOSUB 1-258 UniBasic Commands Reference
EQ Syntax variable = expr expr1 EQ expr2 Synonym = Description The UniBasic EQ operator serves as an assignment operator and a relational operator. As an assignment operator, it assigns expr to variable. As a relational operator, it tests whether expression expr1 is equal to expr2. expr1 and expr2 can be any valid UniBasic expressions, variables, strings, or literals. Relational operators make the comparisons that direct program flow in conditional statements like the following: IF VAR1 = VAR2 THEN GOSUB SUB1 DO UNTIL VAR1 = VAR2 Parameters The following table describes each parameter of the syntax. Parameter Description variable Specifies the variable to which to assign the contents of expr. expr Specifies a value, string, expression, or variable the value of which variable is assigned to. EQ Parameters EQ 1-259
- Page 214 and 215: DIR Syntax DIR(file.expr) Descripti
- Page 216 and 217: STATUS Codes DISABLEDEC has the fol
- Page 218 and 219: DISPLAYWIDTH Syntax DISPLAYWIDTH (s
- Page 220 and 221: DQUOTE DQUOTE is a synonym for the
- Page 222 and 223: Related Commands UniBasic PRECISION
- Page 224 and 225: ECHO Syntax ECHO [ON | OFF | expr]
- Page 226 and 227: EDADRV_CloseStmt Syntax RETCODE EDA
- Page 228 and 229: EDADRV_Connect Syntax RETCODE EDADR
- Page 230 and 231: EDADRV_Disconnect Syntax RETCODE ED
- Page 232 and 233: 1-226 UniBasic Commands Reference
- Page 234 and 235: Return Codes The following table de
- Page 236 and 237: Output Variable The following table
- Page 238 and 239: Output Variables The following tabl
- Page 240 and 241: EDADRV_GetDBInfo Syntax RETCODE EDA
- Page 242 and 243: EDADRV_GetEDAAttr Syntax RETCODE ED
- Page 244 and 245: EDADRV_GetErrmsg Syntax RETCODE EDA
- Page 246 and 247: Input Variables The following table
- Page 248 and 249: EDADRV_LoadSymbols Syntax RETCODE E
- Page 250 and 251: Output Variables The following tabl
- Page 252 and 253: Return Codes The following table de
- Page 254 and 255: Input Variables The following table
- Page 256 and 257: STATUS Codes ENABLEDEC has the foll
- Page 258 and 259: Parameter Description dataLoc 1 - D
- Page 260 and 261: Parameters he following table descr
- Page 262 and 263: END Syntax END Description The UniB
- Page 266 and 267: Examples In the following example,
- Page 268 and 269: EQU Syntax EQU constant1 TO value1
- Page 270 and 271: In the next example, UniData replac
- Page 272 and 273: EXECUTE Syntax EXECUTE "str.expr" [
- Page 274 and 275: Parameter Description Reminder: The
- Page 276 and 277: Related Commands UniBasic COMMON, E
- Page 278 and 279: Parameter Description Examples In t
- Page 280 and 281: The program output is: 1-274 UniBas
- Page 282 and 283: EXP Syntax EXP(expr) Description Th
- Page 284 and 285: Examples The following program segm
- Page 286 and 287: In the next example, the program se
- Page 288 and 289: Options The value of option determi
- Page 290 and 291: FILEINFO Syntax FILEINFO(file.var,
- Page 292 and 293: Code 9 Merge factor percentage 10 S
- Page 294 and 295: FILELOCK Syntax FILELOCK [file.var]
- Page 296 and 297: FILEUNLOCK Syntax FILEUNLOCK [file.
- Page 298 and 299: FIND Syntax FIND expr IN dyn.array[
- Page 300 and 301: Related Commands UniBasic [], FINDS
- Page 302 and 303: Parameter Description Examples In t
- Page 304 and 305: FMT Syntax FMT(expr, "len [f.char]
- Page 306 and 307: STATUS Function Return Values After
- Page 308 and 309: FOOTING Syntax FOOTING [ON num.expr
- Page 310 and 311: Related Commands UniBasic GETPTR, H
- Page 312 and 313: This program segment produces the f
EQ<br />
Syntax<br />
variable = expr<br />
expr1 EQ expr2<br />
Synonym<br />
=<br />
Description<br />
The <strong>UniBasic</strong> EQ operator serves as an assignment operator and a relational operator.<br />
As an assignment operator, it assigns expr to variable. As a relational operator, it tests<br />
whether expression expr1 is equal to expr2.<br />
expr1 and expr2 can be any valid <strong>UniBasic</strong> expressions, variables, strings, or literals.<br />
Relational operators make the comparisons that direct program flow in conditional<br />
statements like the following:<br />
IF VAR1 = VAR2 THEN GOSUB SUB1<br />
DO UNTIL VAR1 = VAR2<br />
Parameters<br />
The following table describes each parameter of the syntax.<br />
Parameter Description<br />
variable Specifies the variable to which to assign the contents of expr.<br />
expr Specifies a value, string, expression, or variable the value of which variable<br />
is assigned to.<br />
EQ Parameters<br />
EQ 1-259