Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
17%
200 - 500 GB
26%
500 - 800 GB
3%
800 - 1200 GB
9%
1200 - 1500 GB
11%
1500 - 2000 GB
14%
> 2000 GB
20%
Total votes: 35

Baanboard at LinkedIn


Reference Content

 
ims.openvba()
By patvdv at 26 Feb 2008 - 21:57


ims.openvba()

Syntax

long ims.openvba(string type, [long initialSize, long increment])

Description

Opens a Variable Byte Array (VBA).

Arguments

type

The mode in which the byte array must be opened. This can be one of the following options:

  • "r": Open for reading. The current position is placed at the start of the byte array.
  • "w": Open for writing. The byte array is created if it does not already exist. The current position is placed at the start of the byte array.
  • "a": Open for writing. The byte array is created if it does not already exist. The current position is placed at the end of the byte array.
  • "x": Open for writing. This is the same as "w", except that the function fails if the byte array already exists.
  • "r+": Same as "r", but it can also be written to.
  • "w+": Same as "w", but it can also be read.
  • "a+": Same as "a", but it can also be read.
  • "x+": Same as "x", but it can also be read.

initialSize

The initial buffer size for the VBA.

If not specified, the initial buffer size is 4096 bytes.

increment

Specifies the number of bytes to increment the VBA with, in case the VBA is full.

If not specified, the buffer will be doubled in size.

Return values

-1

Error, most probably bytearrray is not a valid stream or the byte array is full.

>0

Success. A byte array identifier was returned.

Context

3GL function

Related topics

0
No votes yet


All times are GMT +2. The time now is 18:37.


©2001-2018 - Baanboard.com - Baanforums.com