Can any please explain ?
Kenneth Brody
kenbrody at spamcop.net
Thu Jun 26 07:51:58 PDT 2014
On 6/26/2014 10:09 AM, Richard D. Williams wrote:
> This is a simple case of misunderstanding.
[...]
> if : dd co "Bank"
> then: draw(@af)="Bank Cheque";display
That will compare true for things like "Bob's Bank".
> if :mid(dd,"1","4") eq "Bank"
> then: draw(@af)="Bank Cheque";display
That is identical in result to the original dd="Bank" comparison.
[...]
> P.S. I would also make sure there is not text after the word "Bank" by
>
> if : dd co "Bank "
> then: draw(@af)="Bank Cheque";display
That, too, would compare true for "Bob's Bank", because there are 20
trailing spaces in the 30-character field dd.
> if :mid(dd,"1","6") eq "Bank "
> then: draw(@af)="Bank Cheque";display
That's better, but would still compare true for a typo such as "Bank Of
Bob". (Note the two spaces between "Bank" and "Of".)
[...]
>>> @wlfd3::dd (30,*) = draw(@af)
>>> :dd eq "Bank" : draw(@af) = "Bank Cheque"; display
>>> ::end
[...]
--
Kenneth Brody
More information about the Filepro-list
mailing list