Revision history for KeyPgOpenCons


Revision [21708]

Last edited on 2016-11-17 12:50:55 by fxm [Added a warning about the real behavior presently different from that described]
Additions:
**Warning:** Presently, ##**Open Cons**## does not work as described above. Without any //file mode// specifier, a runtime error 1 (illegal function call) occurs. With the ##[[KeyPgInputfilemode|Input]]## //file mode// specifier, the only input mode is well supported. But with the ##[[KeyPgOutput|Output]]## //file mode// specifier, input and output modes are simultaneously supported.


Revision [21538]

Edited on 2016-08-13 09:30:19 by fxm [Corrected bad referring to 'Open']
Additions:
The error code returned by ##**Open Cons**## can be checked using ##[[KeyPgErr|Err]]## in the next line. The function version of ##**Open Cons**## returns directly the error code as a 32 bit ##[[KeyPgLong|Long]]##.
Deletions:
The error code returned by ##**Open Cons**## can be checked using ##[[KeyPgErr|Err]]## in the next line. The function version of ##**Open**## returns directly the error code as a 32 bit ##[[KeyPgLong|Long]]##.


Revision [21329]

Edited on 2016-04-06 03:34:50 by fxm [The error code returned can also be checked using Err()]
Additions:
The error code returned by ##**Open Cons**## can be checked using ##[[KeyPgErr|Err]]## in the next line. The function version of ##**Open**## returns directly the error code as a 32 bit ##[[KeyPgLong|Long]]##.


Revision [21309]

Edited on 2016-04-03 16:27:41 by fxm [Open Cons() returns a 32 bit Long]
Additions:
In the first usage, ##**Open Cons()**## returns a 32 bit ##[[KeyPgLong|Long]]##: a zero (0) on success and a non-zero error code otherwise.
Deletions:
In the first usage, ##**Open Cons**## returns zero (0) on success and a non-zero error code otherwise.


Revision [21253]

Edited on 2016-03-14 09:59:06 by fxm [Formatting]
Additions:
//(##1##) Illegal function call//
- ##//filenumber//## was not free at the time. use ##[[KeyPgFreefile|Freefile]]## to ensure that ##//filenumber//## is free.
Deletions:
//(##1##) Illegal function call//
##//filenumber//## was not free at the time. use ##[[KeyPgFreefile|Freefile]]## to ensure that ##//filenumber//## is free.


Revision [21024]

Edited on 2016-03-13 05:43:30 by fxm [Formatting]
Additions:
##**Open Cons**## throws one of the following [[ProPgErrorHandling|runtime errors]]:
//(##1##) Illegal function call//
##//filenumber//## was not free at the time. use ##[[KeyPgFreefile|Freefile]]## to ensure that ##//filenumber//## is free.
Deletions:
##**Open Cons**## throws one of the following [[ProPgErrorHandling|runtime errors]]:
//(##1##) Illegal function call//
- ##//filenumber//## was not free at the time. use ##[[KeyPgFreefile|Freefile]]## to ensure that ##//filenumber//## is free.



Revision [20374]

Edited on 2016-02-10 16:04:19 by DkLwikki [Update link format]
Additions:
**Open Cons** **For** [[KeyPgInputfilemode|Input]] **As** [**#**]//filenumber//
**Open Cons** **For** [[KeyPgOutput|Output]] **As** [**#**]//filenumber//
//result// = **Open Cons**( [**For** {**[[KeyPgInputfilemode|Input]]**|**[[KeyPgOutput|Output]]**}[,]] **As** //filenumber// )
**Open Cons** [**For** {**[[KeyPgInputfilemode|Input]]**|**[[KeyPgOutput|Output]]**}] **As** //filenumber//
An available //file number// to bind to the //stdin// or //stdout// stream, which can be found with ##[[KeyPgFreefile|Freefile]]##.
##**Open Cons**## opens the console's //stdin// or //stdout// streams for reading or writing. A //file number// is bound to the stream, which is used in subsequent file operations, such as ##[[KeyPgInputPp|Input #]]##. An available //file number// can be retrieved with ##[[KeyPgFreefile|Freefile]]##.
The ##[[KeyPgInputfilemode|Input]]## //file mode// opens the //stdin// stream for reading file operations, such as ##[[KeyPgInputPp|Line Input #]]##, while the ##[[KeyPgOutput|Output]]## //file mode// opens the //stdout// stream for writing file operations, such as ##[[KeyPgPrintPp|Print #]]##. The ##[[KeyPgOutput|Output]]## //file mode// is the default if not specified.
The //stdin// and //stdout// streams are the ones used when the calling process' input or output is redirected (piped) by OS commands, or when it is opened with ##[[KeyPgOpenPipe|Open Pipe]]##.
##**Open Cons**## throws one of the following [[ProPgErrorHandling|runtime errors]]:
- ##//filenumber//## was not free at the time. use ##[[KeyPgFreefile|Freefile]]## to ensure that ##//filenumber//## is free.
- ##[[KeyPgOpen|Open]]##
- ##[[KeyPgOpenScrn|Open Scrn]]##
- ##[[KeyPgOpenErr|Open Err]]##
- ##[[KeyPgFreefile|FreeFile]]##
Deletions:
**Open Cons** **For** [[KeyPgInputfilemode Input]] **As** [**#**]//filenumber//
**Open Cons** **For** [[KeyPgOutput Output]] **As** [**#**]//filenumber//
//result// = **Open Cons**( [**For** {**[[KeyPgInputfilemode Input]]**|**[[KeyPgOutput Output]]**}[,]] **As** //filenumber// )
**Open Cons** [**For** {**[[KeyPgInputfilemode Input]]**|**[[KeyPgOutput Output]]**}] **As** //filenumber//
An available //file number// to bind to the //stdin// or //stdout// stream, which can be found with ##[[KeyPgFreefile Freefile]]##.
##**Open Cons**## opens the console's //stdin// or //stdout// streams for reading or writing. A //file number// is bound to the stream, which is used in subsequent file operations, such as ##[[KeyPgInputPp Input #]]##. An available //file number// can be retrieved with ##[[KeyPgFreefile Freefile]]##.
The ##[[KeyPgInputfilemode Input]]## //file mode// opens the //stdin// stream for reading file operations, such as ##[[KeyPgInputPp Line Input #]]##, while the ##[[KeyPgOutput Output]]## //file mode// opens the //stdout// stream for writing file operations, such as ##[[KeyPgPrintPp Print #]]##. The ##[[KeyPgOutput Output]]## //file mode// is the default if not specified.
The //stdin// and //stdout// streams are the ones used when the calling process' input or output is redirected (piped) by OS commands, or when it is opened with ##[[KeyPgOpenPipe Open Pipe]]##.
##**Open Cons**## throws one of the following [[ProPgErrorHandling runtime errors]]:
- ##//filenumber//## was not free at the time. use ##[[KeyPgFreefile Freefile]]## to ensure that ##//filenumber//## is free.
- ##[[KeyPgOpen Open]]##
- ##[[KeyPgOpenScrn Open Scrn]]##
- ##[[KeyPgOpenErr Open Err]]##
- ##[[KeyPgFreefile FreeFile]]##


Revision [17579]

Edited on 2015-04-04 06:42:43 by FxMwikki [In function version of OPEN CONS, a comma is not mandatory to separate fields]
Additions:
//result// = **Open Cons**( [**For** {**[[KeyPgInputfilemode Input]]**|**[[KeyPgOutput Output]]**}[,]] **As** //filenumber// )
Deletions:
//result// = **Open Cons**( [**For** {**[[KeyPgInputfilemode Input]]**|**[[KeyPgOutput Output]]**},] **As** //filenumber// )


Revision [16226]

Edited on 2012-07-28 09:34:09 by CountingPine [Link to Open]
Additions:
- ##[[KeyPgOpen Open]]##


Revision [15898]

Edited on 2012-02-01 15:01:08 by CountingPine [Formatting]
Additions:
- ##//filenumber//## was not free at the time. use ##[[KeyPgFreefile Freefile]]## to ensure that ##//filenumber//## is free.
Deletions:
- Filenumber was not free at the time. use ##[[KeyPgFreefile Freefile]]## to ensure that filenumber is free.


Revision [13364]

The oldest known version of this page was created on 2008-05-11 15:37:29 by NkKkan [Formatting]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode