Pass by reference?

Dale Strickland-Clark dale at out-think.NOSPAMco.uk
Wed May 24 16:07:17 EDT 2000


How do I pass a value by reference so the called routine can update it?

Here's an extract from a routine that uses ADO on NT to access a database.
ADO will return the number of records deleted in the second parameter but
it's not working like this.

    DBCon.Execute("delete from parts where path='%s' and drive='%s'" %
(drive, path), delcnt)

Thanks

--
Dale Strickland-Clark
Out-Think Ltd, UK
Business Technology Consultants






More information about the Python-list mailing list