Difference: 0LASubrStreamWrite (1 vs. 5)

Revision 52016-03-02 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.STREAM WRITE

Line: 24 to 24
  <stream_name> is the name of the previously opened stream (Required).
Changed:
<
<
<binary_write_length> is an optional parameter and is only applicable if the file was opened in binary mode (5.4.4 & up). If the file is opened in binary mode and this parameter is not passed, it will default to the length of <write buffer>. The <write_buffer> field will be padded with spaces if necessary. If the length of <write_buffer> is greater than 32000, only the first 32000 bytes will be written.
>
>
<binary_write_length> is an optional parameter and is only applicable if the file was opened in binary mode (5.4.4 & up). If the file is opened in binary mode and this parameter is not passed, it will default to the length of <write buffer>. The <write_buffer> field will be padded with spaces if necessary. If the length of <write_buffer> is greater than 32000, only the first 32000 bytes will be written. If <binary_write_length> is larger than the size of <write_buffer> then the actual length of <write_buffer> will be used.
 

Comments:

Read what other users have said about this page or add your own comments.

Revision 42016-03-02 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.STREAM WRITE

Line: 8 to 8
 

Usage:

      PASS         <write_buffer>             FIELD            SHARE? N
      PASS         <stream_name>              FIELD            SHARE? N

Added:
>
>
PASS <binary_write_length> FIELD SHARE? N
  GOSUB --- .STREAM WRITE
    • check for errors IF --- .STREAM WRITE NE
Line: 23 to 24
  <stream_name> is the name of the previously opened stream (Required).
Added:
>
>
<binary_write_length> is an optional parameter and is only applicable if the file was opened in binary mode (5.4.4 & up). If the file is opened in binary mode and this parameter is not passed, it will default to the length of <write buffer>. The <write_buffer> field will be padded with spaces if necessary. If the length of <write_buffer> is greater than 32000, only the first 32000 bytes will be written.
 

Comments:

Read what other users have said about this page or add your own comments.

Revision 32012-01-25 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.STREAM WRITE

Revision 22012-01-24 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.STREAM WRITE

Line: 17 to 17
  This subroutine is called to write data to a file stream previously opened for WRITE or APPEND access via.STREAM OPEN.
Changed:
<
<
The first two parameters are required, and the subroutine will CANCEL if they are are not all received. The <read_length> parameter is optional.
>
>
The first two parameters are required, and the subroutine will CANCEL if they are are not all received.
 
Changed:
<
<
<write_buffer> identifies the variable containing the data to be written (Required). This subroutine can write lines up to a maximum of 32000 characters. The <line_termination> character you specified when you opened the file will automatically be appended to your data.
>
>
<write_buffer> contains the data to be written (Required). This subroutine can write lines up to a maximum of 32000 characters. The <line_termination> character you specified when you opened the file will automatically be appended to your data.
  <stream_name> is the name of the previously opened stream (Required).

Revision 12012-01-24 - JeanNeron

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.STREAM WRITE

This subroutine is called to write data to a file stream.


Usage:

      PASS         <write_buffer>             FIELD            SHARE? N
      PASS         <stream_name>              FIELD            SHARE? N
      GOSUB    --- .STREAM WRITE
      *        check for errors
      IF       --- .STREAM WRITE              NE

Description:

This subroutine is called to write data to a file stream previously opened for WRITE or APPEND access via.STREAM OPEN.

The first two parameters are required, and the subroutine will CANCEL if they are are not all received. The <read_length> parameter is optional.

<write_buffer> identifies the variable containing the data to be written (Required). This subroutine can write lines up to a maximum of 32000 characters. The <line_termination> character you specified when you opened the file will automatically be appended to your data.

<stream_name> is the name of the previously opened stream (Required).

Comments:

Read what other users have said about this page or add your own comments.


<--/commentPlugin-->

-- JeanNeron - 2012-01-24

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback