GetCustomEscapedString
Get the short description name of DataRange For Origin version 2018 or later.
BOOL GetCustomEscapedString(string& str, LPCSTR lpcszCustom)
TRUE on success and FALSE if lpcszCustomis specified but is not in the valid format.
EX1
void DataObject_GetCustomEscapedString_Ex1() { Worksheet wks = Project.ActiveLayer(); XYRange dr; dr.Add(wks, 0, "X"); dr.Add(wks, 1, "Y"); Column colY; dr.GetYColumn(colY); string str1, str2; colY.GetCustomEscapedString(str2, "@U"); /// Longname & Unit }
origin.h