SetInputData [ClassedPostLayer]

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

SetInputData sets the classed post map input data file and columns.

The SetInputData2 command should 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, zCol, LabCol )

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

zCol

Long

Optional

3 (Column C)

This provides the column containing Z values

LabCol

Long

Optional

This provides the column containing symbol labels.

Example

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

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

xCol:=1, yCol:=2, zCol:=3, LabCol:=3)

Used by: ClassedPostLayer Object