StringListList
Use the
StringListList
type to manage lists of
StringList
objects. The
StringListList
type enables a more dynamic use of the
OLAPCreateDataArea
function. This example shows how
you can use it:
void TestProcess()
{
OLAPConnection olapconnection =
OLAPCreateConnection("LOCAL/Application Engine", "Admin", "");
string yearToConvert = "2011";
string periodToConvert = "01";
StringListList sl = CreateStringListList();
Append(sl, ConvertToStringList(yearToConvert));
Append(sl, ConvertToStringList(periodToConvert));
Append(sl, ConvertToStringList("Local"));
Append(sl, ConvertToStringList(OlapDataAreaAllCells));
Append(sl, ConvertToStringList(OlapDataAreaAllCells));
OLAPDataArea localValues = OLAPCreateDataArea(
olapconnection, "Finance", OlapDataAreaIncludeB,
OlapDataAreaOperatorNone, 0.0,
OlapDataAreaOperatorNone, 0.0, sl);
OLAPDisconnect(olapconnection);
}