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 = OLAPCreateConnection(
	"server",
	"user",
	"password"
);
OLAPElementList list = OLAPGetElementList(con, "DACOUNT", true);
foreach (OLAPElement account in list
	where OLAPGetStringAttribute(account, "ALRE") == "A")
{ 
	// Do something with account. 
}