$printersetup

Displays the Printer Setup common dialog box.

Syntax

$printersetup()

Return Value

Evaluates to “1” ($True) if no errors were detected in the dialog. Otherwise, evaluates to “0” ($False).

Comments

This function is available only on Windows systems. The Printer Setup common dialog box contains a list of printers mounted to your Windows network. To access printers not listed in the dialog box, see your system administrator.

See Also

$setproperty
PRINT

SET DOCUMENT FORMAT

Sets the format of the application document.

Syntax

SET DOCUMENT FORMAT UTF-8|ANSI|DBCHARSET

Parameters

UTF-8Selects the UTF-8 character set and writes a UTF-8 BOM at the beginning of the file.
ANSISelects the ANSII character set.
DBCHARSETSelects the character set used by the current database.

Comments

Identifies the character set used by application documents.

See Also

$DBCharSet

$SetCount

The number of records found by the last FIND command.

Syntax

$setcount

Return Value

A number. Can be reset by an application program.

Description

The number of records in the result set produced by the most recent FIND command.

Example

find Students where GradePt = 4.00

Produces a set of Students whose GradePt is 4.00. If the set contains three students whose grade point average is 4.00, then $SetCount would be set to 3.

See Also

$lastmember

$MemberCount

System Variables

SET MESSAGES WINDOW

Activates or deactivates the use of the message window for system messages.

Syntax

SET MESSAGES WINDOW ON|OFF

Comments

The MESSAGES WINDOW option is set OFF by default.

When MESSAGES WINDOW is OFF, system messages are displayed line-by-line in the application window (BACKSCREEN). By setting MESSAGES WINDOW ON, you enable a pop-up window for the display of all system messages that are not currently suppressed.

 

See Also

SET ERRORS

SET INFORMATION

SET MESSAGES

SET OUTPUT

SET WARNINGS

$CursorScreenCol

The location of focus on the screen when an event occurs.

Syntax

$cursorscreencol

Return Value

The number of the character column where focus is located on the terminal screen at the time of an event. Can be reset by an application program.

Description

The number of the character column where focus was located on the terminal screen at the time of an event.

SET CURRENTSET

Makes a specified result set the current set.

Syntax

SET CURRENTSET setname

Parameters

setname

The name of an existing result set.

Comments

Normally, the current set is the result set produced as a result of the last FIND command executed. SET CURRENTSET enables you to select another existing result set to use as the current set.

The SET CURRENTSET command takes effect immediately upon parsing or compilation, not just when the compiled program is executed.

The SET CURRENTSET command is not affected by the SET RESET and SET RESTORE commands.

Example

procedure test3 (a,b)
 if a = b
  find Employees -> EmpSet
 else
  find Departments -> DeptSet
 endif
 if a = b
  set currentset EmpSet
  let a = LastName
 endif

The SET CURRENTSET command ensures that the correct set is recognized as the current set.

$ObjGetProperty

Get the properties of an ActiveX object.

Syntax

$ObjGet[Property] (Object, PropertyName,<>)

Parameters

Objectan object variable or formfield of type OLE
PropertyNamea string or an expression that evaluates to a string
Parametersoptional parameters as per the object’s specifications

Return Value

Returns a result that can be a string or an ActiveX object.

Comments

If a parameter’s name is “Picture” then the parameter should be named. For more information, see $ObjRunMethod function. Zim has extended object properties with left, top, width and height options (integers) and AutoDrag (boolean).

Warning

COM objects are being discontinued by Microsoft and may not be available in future releases of Zim-X.

en_CAEnglish