Re: ars_DeleteEntry
Brought to you by:
jeffmurphy
|
From: David A. <D.J...@so...> - 1997-04-18 11:24:18
|
>
> David Adams wrote:
>
> > For example, I try to delete record IB000215 with the line
> > $r = ars_DeleteEntry($ctrl, $schema, $entryid);
> > and get the error message:
>
> > Entry does not exist in database : 0000000IB000215
>
> > Is there a workaround to prevent 0000000 being prefixed?
>
> This may be too simplistic but... have you tried padding it with spaces?
> Alternately, have you tried enclosing it in quotes.
>
> --
> Marc Visconte
I have experimented and found a workaround: right padding with spaces!
The improved code is:
$r = ars_DeleteEntry($ctrl, $schema, sprintf("%-15s",$entryid));
--
David Adams
Computing Services
University of Southampton
|