Can any please explain ?

Richard D. Williams richard at appgrp.net
Thu Jun 26 07:09:47 PDT 2014


This is a simple case of misunderstanding.

I do not know of any program where "Bank" is equal to "Bank Cheque".

If you are going to test, use contains or a mid command.

if  : dd co "Bank"
then: draw(@af)="Bank Cheque";display

if  :mid(dd,"1","4") eq "Bank"
then: draw(@af)="Bank Cheque";display

Hope this helps,

Richard

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

if  :mid(dd,"1","6") eq "Bank  "
then: draw(@af)="Bank Cheque";display


On 6/26/2014 6:12 AM, Bill Randall wrote:
> It is not dd that is the problem.  You are comparing it to "Bank" which
> is only 4 characters long so that is all that is compared.  If the user
> is putting in "Bank" as a shortcut to "Bank Cheque", then change your
> compare to be dd eq "Bank                          " (note trailing
> spaces) and it should work the way you want.
>
> Bill
>
> On 6/25/2014 10:04 PM, 'Scott Smith' wrote:
>> Can some please tell me why:
>>
>> IF (Input table)
>>
>> @wlfd3::dd (30,*) = draw(@af)
>> :dd eq "Bank" : draw(@af) = "Bank Cheque"; display
>> ::end
>>
>> And in Screen if
>>
>> The d3 field is entered as : "Bankorsomething name "
>>
>> Then it changes to "Bank Cheque"
>>
>> The dd should be the whole field yet the equals is only seeming to compare
>> the starting first part of the field.
>>
>> Thanks
>>
>> Scott Smith
>>
>>
>>
>>
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> Subscribe/Unsubscribe/Subscription Changes
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>>
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus protection is active.
> http://www.avast.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20140626/51918a91/attachment.html
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>



More information about the Filepro-list mailing list