Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 18 of 18

Qlarity-Based Terminal Programmer's Reference Manual, pages 123 to 134

Pages 123 to 134 of 134: Appendix C Qlarity Command Line Compiler; Appendix D Qlarity API Functions Quick Reference List

The original document is the PDF (1.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the QSI Corp QTERM-G70

Page 123

APPENDIX C QLARITY COMMAND LINE COMPILER You can use the Qlarity compiler to compile your BASIC file rather than using Qlarity Foundry to compile it. This is useful if you created your user application in a text editor.

If any errors occur, they are output to the display. To output the compiler errors to a file, type the following: qlarify -e <error_file_name> <file_name>

The compiler looks for a file called natives.lib. This file contains information message prototypes and functions for the API. This file must be in the same directory as the compiler or the program cannot be compiled.

To display Help on the command line syntax, type the following: qlarify -h

NOTE: The command line compiler is available as a Win32 or Linux executable file. The Win32 compiler is distributed with Qlarity Foundry. Contact QSI to obtain the Linux compiler. Please be aware that the Linux compiler is often in flux and may only be available as a snapshot of current Qlarity developement. To compile a Qlarity BASIC file, at the command prompt, type the following: qlarify <file_name>

To specify the name of the output file type, add the following parameters: qlarify -o <output_file_name> <file_name>

A typical call to the compiler to compile an application in Qlarity Foundry might look like this: qlarify -t keypaddef! charstr -t -> aggregate! string -s 19 -s 25 -a -o -> <output_file_name> <file_name>

This would have the compiler define the pseudotypes keypaddef% as a charstr and aggregate% as string. It would suppress warnings #19 and #25 (dangerous conversion and font definition warning), remove font encodings for Unicode characters from BDF fonts, and output the resultant .bff file to <output_file_name>. Qlarify supports the following command line switches:

-e <error_file>

Redirect error output to <error_file>. If this option is not specified all error information is sent to the display

-o <output_file>

Generate the <output_file> as the compiled Qlarity application. If this is not specified, then output will be sent to a file with the same name as the input file where the .qly extension (if present) is replaced with .bff.

-c

Case sensitive. This makes the compiler case sensitive. By default the compiler is not case sensitive. Do not use this option with QSI provided code or libraries which assume case insensitivity. This is not recommended and should only be used if you have authored your entire application (including libraries and object templates) from scratch.

-h, -?

Print out help information

-v

Print out the compiler version only. Do not compile anything

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 124

112

QSI Qlarity-based Terminal Programmer’s Reference

Remove character encodings greater than 255 (i.e. Unicode characters) from BDF fonts. This can save a lot of memory in applications that do not use Unicode. This is the default setting for applications compiled with Qlarity Foundry.

-a

Normally, if you use this option you will not specify -u Unicode support. Specifying this option will cause the char data type to be 16 bits wide (like a unibyte) and characters in a charstr to be 16 bits each. This effectively enables Unicode support.

-u

Normally you do not use this option in conjunction with -a Create a new pseudo data type name <new_data_type> with the same attributes as <existing_data_type>. The KeypadDef% and Aggregate% data types often used in applications developed in Qlarity Foundry are examples of pseudo data types. -t <new_data_type> <existing_data_type>

Since specifying the percent(%) character in a command line can be difficult, you may substitute the bang (!) character wherever you need to use a percent. For applications developed in Qlarity Foundry, you should usually specify -t keypaddef! charstr -t aggregate! string

Suppress warnings with the number <warning_number>. Some warnings may be overly repetitive and difficult to avoid. You may wish to suppress those warnings from the output. -s <warning_number>

For applications developed in Qlarity Foundry, you should usually specify -s 19 -s 25 which will suppress superfluous conversion warnings and BDF font warnings -p <option>

Defines an option as if you had used #option <option> at the beginning of the source file.

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 125

APPENDIX D QLARITY API FUNCTIONS QUICK REFERENCE LIST This appendix provides a list of the Qlarity API functions in alphabetical order for quick reference. The syntax for each function’s code is also listed. For more information and a description of each function, refer to the section and page listed in the “Manual Reference” column. Function

Each API function statement is defined as a single line of code. In the following list, when a statement wraps to the next line, -> appears at the end of the line to indicate that the statement is continued.

Syntax

Reference

Acos acos(x as float) returns float section 4.11.5, page 73

AllocateArrayHandle allocatearrayhandle(data[] as reference? to -> anytype) returns ArrayHandle section 4.9.12, page 70

ArrayOperation arrayoperation (arr1[] as reference to anytype, -> arr2[] as reference? to anytype, op as ArrayOp)

section 4.9.9, page 69

Asin asin(x as float) returns float section 4.11.4, page 73

Atan atan(x as float) returns float section 4.11.6, page 73

Attach attach(obj as objref, parent as objref)

section 4.4.1, page 43

CalculateCRC calculatecrc(table[] as reference? to integer, -> width as integer, reflect as boolean, crcin as -> integer, reflectout as boolean, xoronout as -> integer, data[] as reference? to byte) returns -> integer section 4.18.27, page 95

ChangeCurDir changecurdir(name[] as reference? to byte)

section 4.16.3, page 78

ChangePort changeport(channel as comm, newport as unibyte)

section 4.1.9, page 38

CloseFile closefile(fnum as filedesc)

section 4.16.9, page 80

Concat concat(strA[] as reference? to sametype!, -> section 4.9.7, page 69 strB[] as reference? to sametype!) returns sametype!

Cos cos(x as float) returns float section 4.11.2, page 73

CreateCRCTable createcrctable(width as integer, poly as integer, -> reflect as boolean) returns integer[] section 4.18.26, page 95

DelayMS delayms(delay as integer)

section 4.18.23, page 94

DrawBdfText drawbdftext(x as integer, y as integer, width as -> integer, height as integer, xoffset as integer, -> yoffset as integer, font as bdffont, data[] as -> reference? to anytype, {flags} as font_flags)

section 4.7.4, page 57

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 126

114

QSI Qlarity-based Terminal Programmer’s Reference

Function

Syntax

Reference

DrawBDFTextFit drawbdftextfit(counts[] as reference? to integer, -> multiflags[] as reference? to multiline_flags, -> xpos[] as reference? to integer, ypos[] as -> reference? to integer, widths[] as reference? to -> integer, heights[] as reference? to integer, -> xoffsets[] as reference? to integer, yoffsets[] -> as reference? to integer, font as bdffont, data[] -> as reference? to anytype, start as integer, -> length as integer, flags as font_flags)

section 4.7.5, page 57

DrawBitmap drawbitmap(x as integer, y as integer, bmp as -> bitmap)

section 4.6.8, page 46

DrawBitmapRegion drawbitmapregion(x as integer, y as integer, -> xoffset as integer, yoffset as integer, width as -> integer, height as integer, bmp as bitmap)

section 4.6.9, page 46

DrawBorder drawborder (x1 as integer, y1 as integer, x2 as -> integer, y2 as integer, style as integer, -> drawFlags as unibyte)

section 4.6.21, page 52

DrawBox drawbox(left as integer, top as integer, righ} as -> integer, bottom as integer)

section 4.6.14, page 48

DrawEllipse drawellipse(xoffset as integer, yoffset as -> integer, a as float, xfocal as float, yfocal as -> float, theta as float, gamma as float, flags as -> ellipse_flags)

section 4.6.16, page 49

DrawLine drawline(x1 as integer, y1 as integer, x2 as -> integer, y2 as integer)

section 4.6.7, page 46

DrawPixmap drawpixmap(x as integer, y as integer, pixmap[] -> as reference? to byte, mapwidth as integer, -> mapheight as integer)

section 4.6.11, page 47

DrawPixmapRegion drawpixmapregion(x as integer, y as integer, -> xoffset as integer, yoffset as integer, width as -> integer, height as integer, pixmap[] as -> reference? to byte, mapwidth as integer, -> mapheight as integer)

section 4.6.12, page 47

DrawPolygon drawpolygon(xpoints[] as integer, ypoints[] as -> integer, flags as poly_flags)

section 4.6.15, page 48

DrawSysText drawsystext(x as integer, y as integer, width as -> integer, height as integer, xoffset as integer, -> yoffset as integer, font as sysfont, facenum as -> integer, ptsize as integer, data[] as reference? -> to anytype, flags as font_flags)

section 4.7.14, page 63

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 127

QSI Qlarity-based Terminal Programmer’s Reference

Function

115

Syntax

Reference

DrawSysTextFit drawsystextfit(multiflags[] as reference? to -> multiline_flags, xpos[] as reference? to integer, -> ypos[] as reference? to integer, widths[] as -> reference? to integer, heights[] as reference? to -> integer, xoffsets[] as reference? to integer, -> yoffsets[] as reference? to integer, indices[] as -> reference? to integer, lengths[] as reference? to -> integer, font as sysfont, facenum as integer, -> ptsize as integer, data[] as reference? to -> anytype, flags as font_flags)

section 4.7.15, page 64

DrawTTFText drawttftext(x as integer, y as integer, width as -> integer, height as integer, xoffset as integer, -> yoffset as integer, font as ttfont, facenum as -> integer, ptsize as integer, data[] as reference? -> to anytype, {flags} as font_flags)

section 4.7.8, page 60

Enable enable(obj as objref, flag as boolean)

section 4.3.4, page 41

EnableKeypadBacklight enablekeypadbacklight(enable as boolean)

section 4.18.8, page 85

EndOfFile endoffile(fnum as filedesc) returns boolean section 4.16.14, page 81

EraseFile erasefile(name[] as reference? to byte)

section 4.16.6, page 79

EraseFileSpace erasefilespace()

section 4.16.15, page 81

Exp exp(x as float) returns float section 4.11.8, page 74

FakeKeyMsg fakekeymsg(msgtype as fake_key, keycode as UNIBYTE)

section 4.12.4, page 75

FakeScreenMsg fakescreenmsg(msgtype as fake_screen, x1 as -> integer, y1 as integer, x2 as integer, y2 as -> integer)

section 4.12.5, page 75

Find find(match[] as reference? to sametype!, start as -> integer, length as integer, pattern[] as -> reference? to sametype!) returns integer section 4.9.6, page 69

FreeArrayHandle freearrayhandle (handle as ArrayHandle)

section 4.9.10, page 70

FromBytes frombytes(var as reference to anytype, toset[] as -> byte, bigendian as boolean)

section 4.10.3, page 72

GetAvailFilespace getavailfilespace() returns integer section 4.16.1, page 78

GetBdfFontMetrics getbdffontmetrics(maxleft as reference to integer,-> maxright as reference to integer, maxup as -> reference to integer, maxdown as reference to -> integer, xnextline as reference to integer, -> ynextline as reference to integer, font as -> bdffont, flags as font_flags)

section 4.7.3, page 56

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 128

116

QSI Qlarity-based Terminal Programmer’s Reference

Function

Syntax

Reference

GetBDFTextFit getbdftextfit(counts[] as reference to integer, -> multiflags[] as reference to multiline_flags, -> xpos[] as reference to integer, ypos[] as -> reference to integer, widths[] as reference to -> integer, heights[] as reference to integer, -> xoffsets[] as reference to integer, yoffsets[] as -> reference to integer, font as bdffont, data[] as -> reference? to sametype!, start as integer, length -> as integer, wordbrks[] as reference? to sametype!,-> linebrks[] as reference? to sametype!, flags as -> font_flags)

section 4.7.2, page 54

GetBdfTextSize getbdftextsize(width as reference to integer, -> height as reference to integer, xoffset as -> reference to integer, yoffset as reference to -> integer, font as bdffont, data[] as -> reference? to anytype, flags as font_flags)

section 4.7.1, page 53

GetBinaryResource getbinaryresource (resourceID as integer)returns -> byte[] section 4.18.24, page 94

GetBitmapSize getbitmapsize(width as reference to integer, -> height as reference to integer, bmp as bitmap)

section 4.6.13, page 48

GetBytes getbytes(tobreak as anytype, bigendian as -> boolean) returns byte[] section 4.10.4, page 72

GetCapture getcapture(obj as objref) returns integer section 4.13.2, page 76

GetChildren getchildren(contobj as objref) returns objref[] section 4.3.6, page 42

GetComMessageSource getcommessagesource()returns comm section 4.1.4, page 36

GetContainer getcontainer(obj as objref) returns objref section 4.3.5, page 42

GetCurDir getcurdir() returns string section 4.16.4, page 79

GetDirEntry getdirentry(index as integer) returns string section 4.16.5, page 79

GetEllipseSize getellipsesize(maxleft as reference to integer, -> maxright as reference to integer, maxup as -> reference to integer, maxdown as reference to -> integer, a as float, xfocal as float, {yfocal} -> as float, theta as float, gamma as float, flags -> as ellipse_flags)

section 4.6.17, page 50

GetEnableInfo getenableinfo(obj as objref, eval as enable_info) -> returns boolean section 4.3.7, page 42

GetException getexception(msg[] as reference to byte, errtype -> as reference to unibyte, errlevel as reference to -> unibyte) returns boolean section 4.14.2, page 77

GetFileInfo getfileinfo(name[] as reference? to byte, size as -> reference to integer, usedfilespace as reference -> to integer, {flags} as reference to fileinfo_flags)

section 4.16.7, page 79

GetFilePos getfilepos(fnum as filedesc) returns integer section 4.16.13, page 81

GetHardwareInfo gethardwareinfo(req} as hwinfo returns byte[] section 4.18.5, page 83

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 129

QSI Qlarity-based Terminal Programmer’s Reference

Function

117

Syntax

Reference

GetNetChannelInfo getnetchannelinfo(channel as comm, prot as -> reference to netprotocol, 1port as reference to -> unibyte, fport as reference to unibyte, ipaddr[] -> as reference to byte)

section 4.1.11, page 38

GetObjPixmap getobjpixmap(width as reference to integer, height-> section 4.6.10, page 47 as reference to integer) returns color[]

GetObjPixmapRegion getobjpixmapregion(x as integer, y as integer, -> width as integer, height as integer)

section 4.6.22, page 52

GetObjProp getobjprop(obj as objref, name[] as reference? to -> byte) returns string section 4.3.2, page 41

GetObjref getobjref(name[] as reference? to byte) returns -> objref section 4.3.1, page 41

GetPosInfo getposinfo(obj as objref, pval as position_info)-> returns integer section 4.3.8, page 42

GetProfileTick getprofiletick() returns integer section 4.18.22, page 94

GetRandomNum getrandomnum() returns float section 4.18.17, page 93

GetScreenPixmap getscreenpixmap(x as integer, y as integer, width -> as integer, height as integer) returns color[] section 4.6.18, page 51

GetSysFontCharacters getsysfontcharacters(font as sysfont,facenum as -> integer, bRange as unibyte, eRange as unibyte) -> returns unibyte[] section 4.7.10, page 61

GetSysFontMetrics getsysfontmetrics(maxleft as reference to integer,-> maxright as reference to integer,maxup as -> reference to integer, maxdown as reference to -> integer, xnextline as reference to integer, -> ynextline as reference to integer, font as -> sysfont, facenum as integer, ptsize as integer, -> flags as font_flags)

section 4.7.13, page 63

GetSystemSetting getsystemsetting(cmd as syscmd, var as reference -> to anytype, which as syscmd_readfrom)

section 4.18.15, page 92

GetSysTextFit getsystextfit(multiflags[] as reference to -> multiline_flags, xpos[] as reference to integer, -> ypos[] as reference to integer, widths[] as -> reference to integer, heights[] as reference to -> integer, xoffsets[] as reference to integer, -> yoffsets[] as reference to integer, indices[] as -> reference to integer, lengths[] as reference to -> integer, font as sysfont, facenum as integer, -> ptsize as integer, data[] as reference? to -> sametype!, wordbrks[] as reference? to sametype!, -> linebrks[] as reference? to sametype!, flags as -> font_flags)

section 4.7.12, page 62

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 130

118

QSI Qlarity-based Terminal Programmer’s Reference

Function

Syntax

Reference

GetSysTextSize getsystextsize(width as reference to integer, -> height as reference to integer, xoffset as -> reference to integer, yoffset as reference to -> integer, font as sysfont, facenum as integer, -> ptsize as integer, data[] as reference? to -> anytype, flags as font_flags)

section 4.7.11, page 61

GetTemperature gettemperature() returns integer section 4.18.12, page 86

GetTime gettime(day as reference to integer, month as -> reference to integer, dig2year as reference to -> integer, dotw as reference to weekday, hour as -> reference to integer, minute as reference to -> integer, second as reference to integer)

section 4.18.10, page 85

GetTTFFontMetrics getttfontmetrics(maxleft as reference to integer, -> maxright as reference to integer, maxup as -> reference to integer, maxdown as reference to -> integer, xnextline as reference to integer, -> ynextline as reference to integer, font as -> ttfont, facenum as integer, ptsize as integer, -> flags as font_flags)

section 4.7.7, page 59

GetTTFTextSize getttftextsize(width as reference to integer, -> height as reference to integer, xoffset as -> reference to integer, yoffset as reference to -> integer, font as ttfont, facenum as integer, -> ptsize as integer, data[] as reference? to -> anytype, flags as font_flags)

section 4.7.6, page 59

GetVersion getversion() returns float section 4.18.4, page 83

IgnoreDrawCache ignoredrawcache(obj as objref, ignore as boolean)

section 4.6.20, page 51

Left left(arr[] as reference? to sametype!, len as -> integer) returns sametype!

section 4.9.2, page 68

Len len(arr[] as reference? to anytype) returns integer section 4.9.1, page 68

Ln ln(x as float) returns float section 4.11.9, page 74

Lower lower(obj as objref)

section 4.4.5, page 44

LowerCase lowercase(str[] as byte) returns string section 4.10.5, page 72

MakeDir makedir(name[] as reference? to byte)

section 4.16.2, page 78

Mid mid(arr[] as reference? to sametype!, index as -> integer, len as integer) returns sametype!

section 4.9.4, page 68

NetClose netclose(channel as comm)

section 4.1.7, page 37

NetSendDatagram netsenddatagram(localport as unibyte, foreignport -> as unibyte, ipaddr[]as reference? to byte, data[] -> as reference? to byte)

section 4.1.19, page 40

NetServerClose netserverclose(channel as servercomm)

section 4.1.8, page 37

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 131

QSI Qlarity-based Terminal Programmer’s Reference

Function

Syntax

119

Reference

NetOpen netopen(obj as objref, prot as netprotocol, -> localport as unibyte, foreignport as unibyte, -> ipaddr[] as reference? to byte)

section 4.1.5, page 36

NetServerOpen netserveropen(obj as objref, prot as netprotocol, -> localport as unibyte) returns servercomm section 4.1.6, page 37

OpenFile openfile(name[] as reference? to byte, flags as -> file_flags) returns filedesc section 4.16.8, page 80

PlayNote playnote(note as byte, duration as integer)

section 4.8.1, page 65

PlayNoteNotify playnotenotify (obj as objref, parm as integer, -> note as byte, duration as integer)

section 4.8.2, page 67

PlaySound playsound (sound as audio)

section 4.8.3, page 67

PlaySoundNotify playsoundnotify (obj as objref, parm as integer, -> sound as _audio)

section 4.8.4, page 67

Power power(x as float, exp as float) returns float section 4.11.7, page 73

Raise raise(obj as objref)

section 4.4.4, page 44

ReadArrayHandle readarrayhandle (data[] as reference to anytype, -> handle as ArrayHandle)

section 4.9.11, page 70

Read DCD readdcd(resource as comm) returns boolean section 4.1.18, page 40

ReadDTR readdtr(resource as comm) returns boolean section 4.1.17, page 39

ReadFile readfile(fnum as filedesc, var as reference to -> anytype)

section 4.16.10, page 80

ReadGPIO readgpio(pins as unibyte) returns GPIO_PIN section 4.18.2, page 82

ReadRTS readrts(resource as comm) returns boolean section 4.1.15, page 39

ReadUserConfig readuserconfig(len as integer) returns byte[] section 4.15.1, page 78

Redim redim(arr[] as reference to anytype, newsize as -> integer)

section 4.9.8, page 69

RegisterKey registerkey(obj as objref, keycode as unibyte)

section 4.2.3, page 41

RegisterMsgHandler registermsghandler(obj as objref, msgnum as -> message, {msgparm} as unibyte)

section 4.2.1, page 40

Relocate relocate(obj as objref, x as integer, y as integer)

section 4.5.3, page 44

RemoveCapture removecapture(obj as objref)

section 4.13.3, page 76

RenameFile renamefile(name[] as reference? to byte, newname[]-> as reference? to byte)

section 4.16.16, page 81

Replace replace(match[] as reference to sametype!,start -> as integer, len as integer, pattern[] as -> reference? to sametype!, newdata[] as reference? -> to sametype!, count as integer)returns integer section 4.9.14, page 71

Rerender rerender(obj} as objref)

section 4.5.1, page 44

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 132

120

QSI Qlarity-based Terminal Programmer’s Reference

Function

Syntax

Reference

Resize resize(obj} as objref, width as integer, height -> as integer)

section 4.5.2, page 44

Rethrow rethrow()

section 4.14.3, page 77

ReverseFind reversefind(match[] as reference? to sametype!, -> start as integer, len as integer, pattern[] as -> reference? to sametype!) returns integer section 4.9.13, page 70

RGB rgb(red as byte, green as byte, blue as byte) -> returns color section 4.6.5, page 45

Right right(arr[] as reference? to sametype!, len as -> integer) returns sametype!

section 4.9.3, page 68

SeedRandomNum seedrandomnum()

section 4.18.18, page 93

Send send(resource as comm,data[] as anytype)

section 4.1.1, page 35

SendtoBack sendtoback(obj as objref)

section 4.4.3, page 43

SendtoFront sendtofront(obj as objref)

section 4.4.2, page 43

SetArrayData setarraydata(arr[] reference? to sametype!, index -> as integer, srcdata[] as reference? to sametype!, -> srcindex as integer, len as integer)

section 4.18.25, page 94

SetBacklight setbacklight(command as backlight_adjust)

section 4.18.7, page 85

SetBgColor setbgcolor(newcolor as byte)

section 4.6.4, page 45

SetBreak setbreak(resource as comm, {state} as boolean)

section 4.1.3, page 35

SetCapture setcapture(obj as objref)

section 4.13.1, page 76

SetContrast setcontrast(direction as contrast_adjust)

section 4.18.6, page 84

SetCTS setcts(resource as comm, {outValue} as boolean section 4.1.14, page 39

SetDSR setdsr(resource as comm, outValue as boolean)

section 4.1.16, page 39

SetFgColor setfgcolor(newcolor as byte)

section 4.6.3, page 45

SetFilePos setfilepos(fnum as filedesc, offset as integer, -> absolute as boolean)

section 4.16.12, page 81

SetGPIO setgpio(pins as unibyte, action as gpio_action)

section 4.18.1, page 82

SetGPIODirection setgpiodirection(pins as unibyte, input as boolean)

section 4.18.3, page 83

SetLED setled(cmd as ledcmd, lednum as integer)

section 4.18.9, page 85

SetObjProp setobjprop(obj as objref, name[] as reference? to -> section 4.3.3, page 41 byte, value[] as reference? to byte)

SetOrigin setorigin(cont as objref, {originX} as integer, -> originY as integer)

SetPalette setpalette(red[] as reference? to byte, green[] -> section 4.18.30, page 96 as reference? to byte, blue[] as reference? to byte)

SetPixel setpixel(x as integer, y as integer)

section 4.6.6, page 46

SetSeedRandomNum setseedrandomnum(seed as integer)

section 4.18.19, page 93 section 4.3.9, page 43

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 133

QSI Qlarity-based Terminal Programmer’s Reference

Function

121

Syntax

Reference

SetSerialRecvSize setserialrecvsize(res as comm, newsize as integer)

section 4.1.12, page 38

SetSerialTimeout setserialtimeout(res as comm, newtimeout as integer) section 4.1.13, page 39

SetSystemSetting setsystemsetting(cmd as syscmd, newvalue as -> anytype, action as syscmd_action)

section 4.18.14, page 87

SetTime settime(day as integer, month as integer, -> dig2year as integer, dotw as weekday, hour as -> integer, minute as integer, second as integer)

section 4.18.11, page 86

SetTransparent settransparent(newcolor as byte)

section 4.6.1, page 45

SetTTFAngle setttfangle(theta as float)

section 4.7.9, page 60

SetVolume setvolume(direction as volume_adjust)

section 4.8.6, page 67

Sin sin(x as float) returns float section 4.11.1, page 73

SoftReset softreset(rst as rstmode)

section 4.18.16, page 93

Sqrt sqrt(x as float) returns float section 4.11.10, page 74

StopSpkr stopspkr()

section 4.8.5, page 67

Str str(value as reference? to anytype) returns string section 4.10.1, page 71

Tan tan(x as float) returns float section 4.11.3, page 73

Throw throw(loc[] as reference? to byte, msg[] as -> reference? to byte)

section 4.14.1, page 77

Tool_Persist tool_persist(x as reference to anytype)

section 4.17.1, page 82

Tool_Trace tool_trace(str as string)

section 4.17.2, page 82

Transmit transmit(resource as comm, data[] as reference? -> to anytype, block as boolean)

section 4.1.2, page 35

TransmitUrgent transmiturgent(channel as comm, data[] as -> reference? to anytype)

section 4.1.10, page 38

Trim trim(arr[] as reference? to byte) returns string section 4.9.5, page 68

TypeOf typeof(unique as reference to integer, obj as -> objref, name[] as reference? to byte) returns -> typeval section 4.18.13, page 86

UnregisterMsgHandler unregistermsghandler(obj as objref, msgnum as -> message, msgparm as unibyte)

section 4.2.2, page 40

UpperCase uppercase(str[] as byte) returns string section 4.10.6, page 73

UseDrawCache usedrawcache(useit as boolean)

section 4.6.19, page 51

UseTransparent usetransparent(flag as boolean)

section 4.6.2, page 45

UserBroadcastMsg userbroadcastmsg(startobj as objref, msgnum as -> message, parm as integer, donow as boolean)

section 4.12.1, page 74

UserSendMsg usersendmsg(startobj as objref, msgnum as message,-> parm as integer, donow as boolean)

section 4.12.2, page 74

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770

Page 134

122

QSI Qlarity-based Terminal Programmer’s Reference

Function

Syntax

Reference

UserDirectMsg userdirectmsg(startobj as objref, msgnum as -> message, parm as integer, donow as boolean) -> returns boolean section 4.12.3, page 75

Val val(value as reference to anytype, text[] as -> reference? to byte)

section 4.10.2, page 71

WatchdogEnable watchdogenable(enable as boolean, timeout as -> integer)

section 4.18.20, page 93

WatchdogReset watchdogreset()

section 4.18.21, page 94

WriteFile writefile(fnum} as filedesc, data as reference? -> to anytype)

section 4.16.11, page 81

WriteUserConfig writeuserconfig(cfg[] as reference? to byte)

section 4.15.2, page 78

ZlibCompress zlibcompress(out[] as reference to byte, in[] as -> reference? to byte)

section 4.18.28, page 96

ZlibDecompress zlibdecompress(out[] as reference to byte, in[] -> as reference? to byte)

section 4.18.29, page 96

QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770