Does DELETE close a lookup?
Jay R. Ashworth
jra at baylink.com
Sun Dec 2 15:29:33 PST 2007
On Sun, Dec 02, 2007 at 03:37:41PM -0700, fp at casabellagallery.com wrote:
> Jay wondered:
> > If I have a lookup open, and decide I want to DELETE the free record I
> > just allocated through it, will
> >
> > IF: tag
> >
> > be false after that? By definition, I mean; I'm sure I could test it,
> > but I'm equally sure that might not be authoritative, and the help file
> > doesn't seem to say, on either end.
>
> Well, I did run a test using code:
>
> 1 ------- - - - - - - - - - - - - - - - -
> @key* ? If: ?
> Then: lookup ref = asorderd k=40 i=A -npx b="(brw=12 fill=asc)*1 >
> 2 ------- - - - - - - - - - - - - - - - -
> ? If: not ref ?
> Then: end ?
> 3 ------- - - - - - - - - - - - - - - - -
> ? If: ?
> Then: delete ref ?
> 4 ------- - - - - - - - - - - - - - - - -
> ? If: ref ?
> Then: show "@Its there ..." ?
>
> and line 4 is TRUE every time.
Well, I guess that proves that DELETE doesn't imply CLOSE.
I believe that to be a bug. It's especially a bug if I can't CLOSE
*after* I delete: I'm going to have code working against that alias
tag, and I don't want it to blow up if I've had to delete the record
(which I won't always do...)
Thanks, Jose.
Cheers,
-- jra
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274
Witty slogan redacted until AMPTP stop screwing WGA
More information about the Filepro-list
mailing list