 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Emmanuel Guest
|
Posted: Tue Mar 22, 2005 11:37 pm Post subject: How can use Variant::PutElement(const Variant& data, const i |
|
|
How can use Variant::PutElement(const Variant& data, const int i1);
I see the sample
void __fastcall TAppServerModule::Provider1GetDataSetProperties(TObject
*Sender, TDataSet *DataSet; OleVariant &Properties)
{
int Bounds[2] = {0,1};
Properties = VarArrayCreate(Bounds,1, varVariant);
Variant NameValueDelta[3];
NameValueDelta[0] = "TimeProvided";
NameValueDelta[1] = Now();
NameValueDelta[2] = true;
Properties.PutElement(VarArrayOf(NameValueDelta,2),0);
NameValueDelta[0] = "TableSize";
NameValueDelta[1] = DataSet->RecordCount();
NameValueDelta[2] = false;
Properties.PutElement(VarArrayOf(NameValueDelta,2),1);
}
the value i1, when should be 0,when should be 1;
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|