How do I pass the OleVariant array in TADOConnection::OpenSchema()

By: Anthony Pryor

Abstract: TADOConnection::OpenSchema() params

Question:
How do I pass the OleVariant array in TADOConnection::OpenSchema()?

Answer:
 int bounds[] = {0,3};
 OleVariant A(bounds,1, varVariant);
 A.PutElement(Unassigned,0);
 A.PutElement(Unassigned,1);
 A.PutElement(WideString(myADOTable->Name) ,2);
 A.PutElement(Unassigned,3);
 myADOConnection->OpenSchema(siColumns, A  , EmptyParam, myADODataSet);

Server Response from: ETNASC02