filepro quirk

Roger Cornelius rac at custom-mobility.com
Thu Oct 28 11:23:52 PDT 2004


I've been absent from this list for awhile and have a couple of filepro
related questions.  The first is below.  I'll post the second 
separately.

dreport v 4.8.10D4 on SCO OSR5.0.7

I have the following code:

         If: 
       Then: import WORD imp=(if)
	   ...

         If: imp(2) eq "TX"
       Then: gosub TXTYPE
         If: imp(2) eq "TXA"
       Then: gosub TXATYPE

Given this input record:

"D42535","TX","48277","48766","10272004","1","34122"

Both of the imp(2) comparisons are successful.  Why?  What I found works
is:
         If:
       Then: zf(3,*) 
         If: 
       Then: zf = imp(2)
         If: zf eq "TX "	' note space after TX
       Then: gosub TXTYPE
         If: zf eq "TXA"
       Then: gosub TXATYPE

It appears filepro is comparing only the first n characters of the two
vars where n is the length of the shorter of the two.
I believe I remember reading something about this, possibly on this
list, long ago.  Can anyone explain this behavior to me?

-- 
Roger Cornelius            rac at custom-mobility.com

Special Notice: This email transmission may contain material which is
confidential under Florida statutes and is intended to be delivered only
to the named addressee. This information belongs to our facility and is
legally privileged. Unauthorized dissemination of this information may
be a violation of criminal statutes. The recipient of this information
is prohibited from disclosing, copying, distributing or using this
information except as permitted by current government law governing
privacy information issues. Such information must be destroyed after its
stated need has been fulfilled, unless otherwise prohibited by law. If
this information is received by anyone other than the named addressee,
the recipient should immediately notify us at the address or telephone
number shown and obtain instructions as to the disposal thereof. Under
no circumstances should this material be read, retained, or copied by
anyone other than the named addressee.


More information about the Filepro-list mailing list