Can any please explain ?
Richard D. Williams
richard at appgrp.net
Thu Jun 26 09:07:01 PDT 2014
Well, I think the problem is not stated completely.
Scott,
Please restate your issue.
What is your goal? To change "what" to "what".
Give an example of the actual value of the draw(@af) nd what you want it
to be.
Richard
On 6/26/2014 9:51 AM, Kenneth Brody wrote:
> 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
> [...]
>
More information about the Filepro-list
mailing list