2.2.6.36.3 WorksheetControl::GetColDesignations

Description

Gets column designations for entire worksheet control in form of string Possible values for designations: 'X' - X column 'Y' - Y column 'Z' - Z column 'E' - Y error column 'L' - label column 'M' - X error column 'N' - ignore column


Gets column designations for entire worksheet in form of string Possible values for designations: 'X' - X column 'Y' - Y column 'Z' - Z column 'E' - Y error column 'L' - label column 'M' - X error column 'N' - ignore column

Syntax

string GetColDesignations( )


void GetColDesignations( string & strDesignations )

Parameters

strDesignations

Return

Examples

EX1

#include <Dialog.h>
#define IDC_WORKSHEET 1001

// Assumes the current window is worksheet
void WorksheetControl_GetColDesignations_ex1(Dialog& dlg)
{
	Worksheet wks = Project.ActiveLayer();
	string         strWksName = wks.GetName();
	WorksheetControl wc = dlg.GetItem(IDC_WORKSHEET);
	wc.Attach(strWksName);
	string strDesignations = wc.GetColDesignations();
}


EX2

#include <Dialog.h>
#define IDC_WORKSHEET 1001
// Assumes the current window is worksheet
void WorksheetControl_GetColDesignations_ex2(Dialog& dlg)
{
	Worksheet wks = Project.ActiveLayer();
	string         strWksName = wks.GetName();
	WorksheetControl wc = dlg.GetItem(IDC_WORKSHEET);
	wc.Attach(strWksName);
	string strDesignations;
	wc.GetColDesignations(strDesignations);
}

Remark

See Also

Header to Include

Control.h