Getnext lookup -
Kenneth Brody
kenbrody at bestweb.net
Thu Dec 4 09:38:16 PST 2008
Quoting Nancy Palmquist (Thu, 04 Dec 2008 11:53:36 -0500):
> Walter Vaughan wrote:
[...]
>> ::pn(10,,g)=upd(1):
>> ::lookup - k=pn i=b -nx:
>> :1 ne pn:show "@No match for "<pn; goto loopU:
[...]
> Remember if 1="BigPart" and pn eq "BIG" it will find that part of no
> other part name starts with BIG.
>
> And you test 1 ne pn would not catch that difference.
>
> 1{"~" ne pn{"~" would test true when they are identical and false
> when they are not.
>
> Any silly character that is never in pn would work.
In this particular case, since pn is defined as (10,,g), the above steps
aren't necessary, as pn won't be "BIG" but rather "BIG ". As such,
it would not match "BigPart ".
In cases where you don't have a fixed-length field, such as using the
import's field upd(1) directly, then your advice is correct.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list