Programming with Reflection

image\rwnprg32.gif WRQHostRecordSize property

 

Syntax

object.WRQHostRecordSize
object.WRQHostRecordSize = Value

Works with

image\r124.gif

Data type

Integer

 

Description

Returns (first syntax line) or specifies (second syntax line) the record size (in bytes) for files transferred to the host.

The default value—0—specifies that the record size for the host file is to be determined by the host.

When you send binary files they are divided up into fixed-length records containing n bytes, where n is the value of WRQHostRecordSize. The last record contains the remainder (assuming the total number of bytes in the file is not evenly divisible by n).

When you send an ASCII file, any records containing more than n bytes, where n is the value of WRQHostRecordSize, are split up into smaller records.

A host record size specified with an attribute argument to the WRQSendFile method takes precedence over the value of WRQHostRecordSize.

A value of 80 is standard for many text editors; 132 is appropriate for many printers. If you don't know what size to use for a particular host program, check other host files used by the same program.

This property is relevant only for transfers that use the WRQ/Reflection protocol.

Values

The default value is 0.

The range of values is 0-32767.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this property