swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax    
declaration/definition   declare #main-input has    

Syntax

  declare #main-input has (binary-mode | text-mode)

  declare #main-input has (binary-mode | text-mode | buffered | unbuffered) 


Purpose

Usually, #main-input is read from in text mode (this is the default setting). #main-input has allows you to explicitly change the mode in which data is written.

You should always use this declaration in preference to the newline declaration for performing binary input or output.

Usually, #main-input is read from in text mode (this is the default setting for non-UNIX systems) and is buffered. #main-input has allows you to explicitly change the mode in which data is written. Changing both the mode and the buffering is possible, but requires two declare statements.

For example:

  declare #main-input has binary-mode
  declare #main-input has unbuffered

You should always use this declaration in preference to the newline declaration for performing binary input or output.

    Related Syntax
   #main-input
 
 
----

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:07:07 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.