fieldname Function

Returns the name of a specific field output from the parent node.

Category: Data Input
Returned data type: Character

Syntax

fieldname(index)

Required Arguments

index

is the index into the incoming fields.

Examples

Example 1

// Declare a string variable to contain the field name

String Field3

 

// Use the Fieldname function to get the third field in the incoming data

Field3 = Fieldname(3)

Example 2

// Declare a hidden integer for the for loop, initializing it to 0

hidden integer i

i = 0

// Declare a string variable to contain the column names

string column_name

 

// Create a table with a row for each column in the input data source

for i = 1 to fieldcount()

begin

   column_name = fieldname(i)

pushrow()

end