Re: how to assign a recordset of ado to a variant?
- From: "Viatcheslav V. Vassiliev" <support@xxxxxxxxxxxxxxx>
- Date: Wed, 28 Sep 2005 20:06:56 +0400
If your COM-server is in-process - yes, if out-of-process (such as Word,
Excel) - no.
V contains ADO recordset that you can use in your COM library. Look MSDN for
ADO recordset properties and methods. You may try also
uses
ADOInt;
ADODataSet2.Recordset := v as _Recordset;
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"zhangsn" <zhangsn98@xxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:433a4a95@xxxxxxxxxxxxxxxxxxxxxxxxx
> Thank you
>
> But if I use COM and take 'V' for parameter, then whether i can use your
> way or not?
> else how import the data from datasetrecord
> into 'V' in this case????
>
>
> "Viatcheslav V. Vassiliev" <support@xxxxxxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ
> :433a35c7$1@xxxxxxxxxxxxxxxxxxxxxxxxx
>> var
>> v: OleVariant;
>> begin
>> ...
>> v := ADODataSet1.Recordset;
>> end;
>>
>> or
>> v := ADODataSet1.Recordset as IDispatch;
>>
>> But you can not pass recordset between processes.
>>
>> //------------------------------------------
>> Regards,
>> Vassiliev V. V.
>> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
>> ADO.Net
>> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
>> MS Jet (Access) and Interbase (through OLEDB)
>>
>>
>> "zhangsn" <zhangsn98@xxxxxxxx> ÓÏÏÂÝÉ?ÓÏÏÂÝÉÌÁ ?ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅ?
>> news:4339f0d3@xxxxxxxxxxxxxxxxxxxxxxxxx
>> > Hi
>> > I want to pass a 'variant' to other program on another machine.
>> > And the 'variant' should contain all data in the recordset of ado.
>> > I see the sourcecode of delphi6. But I did not understand, and i
>> > could not use clientdataset and provider in this .
>> > anyone have the sample change the recordset to a variant and on the
>> > another
>> > program change the variant to the dataset.
>> > rgds
>> >
>> >
>>
>>
>
>
.
- References:
- how to assign a recordset of ado to a variant?
- From: zhangsn
- Re: how to assign a recordset of ado to a variant?
- From: Viatcheslav V. Vassiliev
- Re: how to assign a recordset of ado to a variant?
- From: zhangsn
- how to assign a recordset of ado to a variant?
- Prev by Date: Re: how to assign a recordset of ado to a variant?
- Next by Date: Re: ADO failing on XP - untangling MDAC and Jet DLLs
- Previous by thread: Re: how to assign a recordset of ado to a variant?
- Next by thread: Pulling Thai Characters from Access
- Index(es):
Relevant Pages
|
|