Set_Argument_Size

Obsolete

The internal buffers that store string variables and text columns are now maintained dynamically, and this allows them to be of any size (within memory limits). If you use Set_Argument_Size in your applications, those commands are ignored and if you use Get_Argument_Size, it returns the current size of the dynamically allocated buffer.

 

 

See Also: Append_Output, Direct_Input, Direct_Output, Get_Argument_Size

Purpose

To set the current argument size setting. Argument size is the largest size permitted for string variables.

Syntax

set_argument_size bytes

What It Does

The default maximum argument size can be found under Argument Size in the DataFlex Specifications book. Where arguments of greater size than the default may need to be handled in a program, a larger allocation of memory can be specified by the set_argument_size command.

set_argument_size 256000

In this example, the maximum argument size for a program is set to 256000 bytes.

Argument size can be reset any number of times desired in a program. This is important because large argument sizes consume more memory. Argument work space is twice the amount of memory indicated by the maximum size in effect, and the string expression stack consumes additional memory beyond that when a large argument size is set.

Notes