Re: how to assign a recordset of ado to a variant?



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


.



Relevant Pages

  • Re: how to assign a recordset of ado to a variant?
    ... But you can not pass recordset between processes. ... > And the 'variant' should contain all data in the recordset of ado. ... > anyone have the sample change the recordset to a variant and on the ... > program change the variant to the dataset. ...
    (borland.public.delphi.database.ado)
  • how to assign a recordset of ado to a variant?
    ... And the 'variant' should contain all data in the recordset of ado. ... anyone have the sample change the recordset to a variant and on the another ...
    (borland.public.delphi.database.ado)
  • Re: Problem with the output of Split
    ... to the recordset and made them both advarcharjust to test this. ... The Array and Split statements here seem equivalent except when I try ... Dim varFieldNames As Variant ...
    (microsoft.public.vb.general.discussion)
  • Re: Concatenate problem
    ... > Function sCostDesc(lcindex As Variant) As Variant ... Rs As Recordset ... The first column is an ID ... the second is a description keyword. ...
    (microsoft.public.excel.programming)
  • RE: import html forms from outlook to access
    ... Dim rstExchange As Recordset, rstUsers As Recordset ... Dim UserName As Variant, UserCompany As Variant ...
    (microsoft.public.access.externaldata)