|
Summary
This property is used to check if it is currently possible to capture incoming data to the file specified in the CaptureFile property.
Description
The boolean CaptureDataFile property is used to check if it is possible to start capturing incoming data to the file specified by the CaptureFile property at that specific time. An
application may want to enable or disable a menu item depending on the value of the CaptureDataFile property. The InCaptureDataFile property can be used to check if the capture of incoming data is
currently enabled or disabled.
To start data capture to a specific file, the DataCapture method must be called with the CaptureFile parameter set to a valid file name (or the VtAction property must be set to
VT_CAPTURE_DATA_FILE). To stop the data capture to a specific file, the DataCapture method must be called again with the CaptureFile parameter set to the file name used in the first call (or
the VtAction property must again be set to VT_CAPTURE_DATA_FILE). Any data that was displayed on the VT220 emulation window between these two actions will be captured and saved to the file specified
by the CaptureFile property. The CaptureAppend property determines if the contents of this file will be overwritten or appended with the captured data.
There is no default value for this property. This property can only be read at run time after the emulation has been initialized and cannot be written to at any time.
Example
Menu_Edit_Item(7).Enabled = (Vt220Client.CaptureDataFile = True)
|