OLAPElement
Variables of the type OLAPElement
represent an OLAP dimension element. To initialize such variables explicitly, you can use several functions, but you can also use them as an iterator variable in foreach
statements:
OLAPConnection con = OLAPCreateNamedConnection("");
OLAPElementList list = OLAPGetElementList(con, "DACOUNT", true);
foreach (OLAPElement account in list
where OLAPGetStringAttribute(account, "ALRE") == "A")
{
// Do something with account.
}