🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages Started by Emmanuel Tue, 22 Mar 2005 23:37
How can use Variant::PutElement(const Variant& data, const int i1);
#74
Author: Emmanuel
Date: Tue, 22 Mar 2005 23:37
22 lines
1566 bytes
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;
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads