Browse lookup
Keith F Weatherhead
keithw at ddltd.com
Sun Dec 19 15:06:35 PST 2004
John Esak wrote:
>
>>-----Original Message-----
>>From: Kenneth Brody [mailto:kenbrody at bestweb.net]
>>Sent: Friday, December 17, 2004 9:40 AM
>>To: john at valar.com
>>Cc: filePro mailing list
>>Subject: Re: Browse lookup
>>
>>
>>John Esak wrote:
>>
>>>>> 97 ------- - - - - - - - - - - - -
>>>>
>>>>- - - -
>>>>
>>>>> —„ If: @sk="BRKY" or @bk = "X"
>>>>> Then: GOTO is_exit
>>>>
>>>>This will check for breaking out or pressing 'X', but it doesn't check
>>>>for the lookup having failed because there were no records.
>>
>>Simply add
>>
>>>>"or not pros". (Actually, in that case, the check for BRKY
>>
>>is redundant.)
>>
>>>Just curious, why is the test for @BRKY redundant here??
>>
>>[...]
>>
>>Because if you press BREAK in the browse lookup window, it will cause the
>>lookup to fail, making the BRKY test redundant once you add the "not pros"
>>test to handle the "there are no records" situation.
>>
>>--
>>+-------------------------+--------------------+------------------
>>-----------+
>>| Kenneth J. Brody | www.hvcomputer.com |
>
>
> Ah, I never understood it that way. I always put the @sk eq "BRKY" test
> above the "no record" test. I don't know why... In any case, I hear what you
> are saying about it causing the lookup to break. In either case, I consider
> the two situations completely different and put the @sk test first so that
> both situations can be handled independently.
While I understood Kens point, like you I always use the two lines
to handle them seperately. I suppose you could have a error handler
for failed browse lookups and at that point check if you got there
with: @sk eq "BRKY", rather than a "no find" condition. In most
cases, you may very well have to handle the situations differently
anyway, just which method works better for your style of programming.
Regards,
Keith
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 12/17/2004
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Keith F. Weatherhead keithw at ddltd.com
Discus Data, LTD Voice: (815) 237-8467
3465 S Carbon Hill Rd Fax: (815) 237-8641
Braceville, IL 60407 Nat'l_Pager: (815) 768-8098
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
More information about the Filepro-list
mailing list