FileInterface.FormatFlags Property

Top 

Description

The format flags affect the way data is read and is written for certain data types. To set a format flag, set the value at the corresponding array index to 1. To unset a format flag, set the value at the corresponding array index to 0. The format flags indicies are as follows:

index = 0 name = boolalpha definition: read/write boolean values as names (i.e. true/false).

index = 1 name = dec definition: read/write integer values in decimal base format.

index = 2 name = fixed definition: write floating point values in fixed-point notation.

index = 3 name = hex definition: read/write integer values in hexadecimal base format.

index = 4 name = internal definition: the output is padded with spaces at an internal point enlarging the output up to the field width.

index = 5 name = left definition: the output is padded at the end enlarging the output up to the field width.

index = 6 name = oct definition: read/write integer values in octal base format.

index = 7 name = right definition: the output is padded at the beginning enlarging the output up to the field width.

index = 8 name = scientific definition: write floating-point values in scientific notation.

index = 9 name = showbase definition: write integer values preceded by the numeric base.

index = 10 name = showpoint definition: write floating-point values including always the decimal point.

index = 11 name = showpos definition: write non-negative values preceded by a plus sign (+).

index = 12 name = shipws definition: skip leading whitespaces on certain input operations.

index = 13 name = unitbuf definition: flush output after each inserting operation.

index = 14 name = uppercase definition: write uppercase letters replacing certain lowercase letters.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Attributes

Type:

Array of integer (size = 15)

Access:

read/write

Default Value:

{ 0, 0, ...0, 0 }

 

Syntax

myVariable1 = myFileInterface1.FormatFlags[0];

 

myFileInterface1.FormatFlags[0] = myVariable1;

 

See also

FileInterface Object

Interfacing with Files Guide

Parsing Arbitrary String Data