SetInputData [PostLayer]

The SetInputData method is superseded by SetInputData2. Please consider using the more recent version. SetInputData has been retained for backward compatibility.

SetInputData sets the post map input data file and columns.

The SetInputData2 command should specifically be used instead of SetInputData, when the worksheet being loaded is an Excel file where the sheet name needs to be specified. It can also be used to specify any data import options when loading a data file.

Syntax

object.SetInputData( DataFileName, xCol, yCol, LabCol, SymCol, AngleCol )

Parameter

Type

Required/

Optional

Default

Description

DataFileName

String

Required

This provides the path and file name of the data file.

xCol

Long

Optional

1 (Column A)

This provides the column containing X values.

yCol

Long

Optional

2 (Column B)

This provides the column containing Y values.

LabCol

Long

Optional

3 (Column C)

This provides the column containing symbol labels.

SymCol

Long

Optional

4 (Column D)

This provides the column containing symbol numbers.

AngleCol

Long

Optional

5 (Column E)

This provides the column containing symbol angles.

Example

This example demonstrates how to specify a new data file for an existing post map.

PostLayer.SetInputData(DataFileName:=SurferApp.Path+"\Samples\demogrid.dat", _

xCol:=1, yCol:=2, LabCol:=3, SymCol:=4, AngleCol:=5)

Used by: PostLayer Object