On Mon, Jan 08, 2001 at 02:53:06PM -0500, Ron Grabowski wrote:
> > $conn = Win32::OLE->new("ADODB.Connection");
>
> Does anyone know if there are benefits to creating objects this way as
> opposed to
>
> $Server->CreateObject("ADODB.Connection");
I don't. This is taken from "Perl-Win32-Database FAQ" at
http://www.fastnetltd.co.uk/Perl
> > $id = $rs->Fields('id')->value;
> > $ts= $rs->Fields('timestamp')->{Value};
>
> I never use the later method to access things from a Recordset.
Witch method You use?
> > ts: Win32::OLE::Variant=SCALAR(0x3a12514)
>
> print $$ts; # try dereferencing it?
use Win32::OLE::Variant; helped globally without to much chahes in code.
> # for some reason Dumper() doesn't like recordset objects
> use Data::Dumper;
> print Dumper $rs->Fields('timestamp');
I think OLE Object is a nasty hack.
--
* Tomek
(setq disclaimer 'standard e-mail 'tomek.se.com.pl
pgp-fp "53B8A68AD35A64AF A61DD53E9E5A1C0F")
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web