UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
This program segment produces the following results: 1-274 UniBasic Commands Reference LIST CLIENTS NAME COMPANY 17:33:03 Apr 27 1999 1 CLIENTS... Name.......................... Company Name.................. 9999 Paul Castiglione Chez Paul 10034 Fredrick Anderson Otis Concrete 9980 Beverly Ostrovich Riley Architects 10015 Cal di Grigorio Regina Flooring 4 records listed Related Commands UniBasic DELETELIST, READLIST, SELECT, SELECTINDEX, SELECTINFO, WRITELIST UniQuery DELETE.LIST, GET.LIST, SELECT, SSELECT, SAVE.LIST – For information, see the UniQuery Commands Reference. UniData SQL SELECT – For information, see the UniData SQL Commands Reference.
FOR/NEXT Syntax FOR var = val1 TO val2 [STEP val3] statements] [UNTIL | WHILE expr] statements NEXT [var] Description The UniBasic FOR/NEXT command executes statements repeatedly while incrementing a variable over a range until it reaches the end of the range, or until the condition in the WHILE or UNTIL clause is achieved. You can nest FOR/NEXT constructions. Each FOR statement must end with a NEXT statement. FOR/NEXT should be constructed so termination occurs based on the WHILE or UNTIL condition. Use the CONTINUE statement to transfer control to the next iteration of the command. Parameters The following table describes each parameter of the syntax. Parameter Description var Specifies the variable to increment. val1 Specifies the beginning of the range for incrementing var. val2 Specifies the end of the range for incrementing var. STEP val3 Specifies the change to use in incrementing var. The increment can be negative or positive, making the variable decrease or increase. FOR/NEXT Parameters FOR/NEXT 1-275
- Page 262 and 263: END Syntax END Description The UniB
- Page 264 and 265: Related Commands UniBasic CALL, CHA
- 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 314 and 315: Parameter Description Examples The
- Page 316 and 317: FUNCTION Syntax FUNCTION function.n
- Page 318 and 319: The following program calls the pre
- Page 320 and 321: GE Syntax expr1 GE expr2 Synonyms #
- Page 322 and 323: generateKey Syntax generateKey(priv
- Page 324 and 325: Return Code Status 1-286 UniBasic C
- Page 326 and 327: GET Syntax GET[X] var[,length] [SET
- Page 328 and 329: Example In the following example, t
- Page 330 and 331: Parameters The following table desc
- Page 332 and 333: getHTTPDefault Syntax getHTTPDefaul
- Page 334 and 335: GETLIST Syntax GETLIST list.name [,
- Page 336 and 337: UniData SQL SELECT - For informatio
- Page 338 and 339: STATUS Function Return Values After
- Page 340 and 341: GETQUEUE Syntax GETQUEUE() Descript
- Page 342 and 343: GETREADU Syntax GETREADU() Descript
- Page 344 and 345: getResponseHeader Syntax getRespons
- Page 346 and 347: The following table describes each
- Page 348 and 349: Parameters The following table desc
- Page 350 and 351: GETUSERGROUP Syntax GETUSERGROUP(ui
- Page 352 and 353: GETUSERNAME Syntax GETUSERNAME(uid)
- Page 354 and 355: 1-316 UniBasic Commands Reference
- Page 356 and 357: Related Commands UniBasic GOSUB, ON
- Page 358 and 359: Examples In the following example,
- Page 360 and 361: Parameter Description The replace.n
This program segment produces the following results:<br />
1-274 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
LIST CLIENTS NAME COMPANY 17:33:03 Apr 27 1999 1<br />
CLIENTS... Name.......................... Company<br />
Name..................<br />
9999 Paul Castiglione Chez Paul<br />
10034 Fredrick Anderson Otis Concrete<br />
9980 Beverly Ostrovich Riley Architects<br />
10015 Cal di Grigorio Regina Flooring<br />
4 records listed<br />
Related <strong>Commands</strong><br />
<strong>UniBasic</strong><br />
DELETELIST, READLIST, SELECT, SELECTINDEX, SELECTINFO,<br />
WRITELIST<br />
UniQuery<br />
DELETE.LIST, GET.LIST, SELECT, SSELECT, SAVE.LIST – For information, see<br />
the UniQuery <strong>Commands</strong> <strong>Reference</strong>.<br />
UniData SQL<br />
SELECT – For information, see the UniData SQL <strong>Commands</strong> <strong>Reference</strong>.