Главная страница | назад





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

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);

Last Modified: 07-JAN-00