UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
UniData SQL SELECT – For information, see the UniData SQL Commands Reference. 1-298 UniBasic Commands Reference
GETPTR Syntax GETPTR(unit.no) Description The UniBasic GETPTR function returns a string variable containing the values of the current printer settings for the unit.no specified. Tip: GETPTR can store the values associated with a print unit so those values can be reset to their initial values at the end of a process. GETPTR Function Return Values The GETPTR function returns a string containing the same set of values as specified in the ECL SETPTR function, including the print unit and the options. The following table describes these values. Return Description unit The number assigned to a given printer through UniData, from 0 through 255. (The default is 0.) width The number of characters per line, from 0 to 256 characters. length The number of lines per page, from 1 to 32,767 lines. topmargin The number of lines to leave blank at the top of each page, from 0 to 25. bottommargin The number of lines to leave blank at the bottom of each page, from 0 to 25. mode Destination of output. For mode values, see SETPTR in the UniData Commands Reference. options Print options such as BANNER, COPIES, NHEAD, and FORM. For option values, see SETPTR in the UniData Commands Reference. GETPTR Function Return Values 1-299
- 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
- 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 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
- Page 362 and 363: This next example compiles and runs
- Page 364 and 365: Related Command UniBasic GTS 1-326
- Page 366 and 367: HASH Syntax HASH(rec.key,modulo,typ
- Page 368 and 369: Parameters The following table desc
- Page 370 and 371: HUSH Syntax HUSH {ON | OFF | expr}
- Page 372 and 373: ICONV Syntax ICONV(expr,conv.code.e
- Page 374 and 375: STATUS Function Return Values After
- Page 376 and 377: 1-337 UniBasic Commands Reference
- Page 378 and 379: The following table describes vario
- Page 380 and 381: Related Command UniBasic OCONV Grou
- Page 382 and 383: Example In the following example, t
- Page 384 and 385: Parameters Description Example You
GETPTR<br />
Syntax<br />
GETPTR(unit.no)<br />
Description<br />
The <strong>UniBasic</strong> GETPTR function returns a string variable containing the values of<br />
the current printer settings for the unit.no specified.<br />
Tip: GETPTR can store the values associated with a print unit so those values can be<br />
reset to their initial values at the end of a process.<br />
GETPTR Function Return Values<br />
The GETPTR function returns a string containing the same set of values as specified<br />
in the ECL SETPTR function, including the print unit and the options. The following<br />
table describes these values.<br />
Return Description<br />
unit The number assigned to a given printer through UniData, from 0 through<br />
255. (The default is 0.)<br />
width The number of characters per line, from 0 to 256 characters.<br />
length The number of lines per page, from 1 to 32,767 lines.<br />
topmargin The number of lines to leave blank at the top of each page, from 0 to 25.<br />
bottommargin The number of lines to leave blank at the bottom of each page, from 0 to<br />
25.<br />
mode Destination of output. For mode values, see SETPTR in the UniData<br />
<strong>Commands</strong> <strong>Reference</strong>.<br />
options Print options such as BANNER, COPIES, NHEAD, and FORM. For<br />
option values, see SETPTR in the UniData <strong>Commands</strong> <strong>Reference</strong>.<br />
GETPTR Function Return Values<br />
1-299