filepro quirk

Laura Brody laura at hvcomputer.com
Thu Oct 28 14:14:09 PDT 2004


On Thu, 28 Oct 2004 14:23:52 -0400, Roger Cornelius <rac at custom-mobility.com> wrote:

> 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

	Just swap the two elements so that you test for
the longest string first. You would also do it this
way if you were writing an edit which was trying to
match "TXA" or "TX".

	This partial matching is quite handy when you
want to select records where a field starts with
a value.

-- 
Laura Brody, Publisher of the filePro Developer's Journal
+------------- Hudson Valley Computer Associates, Inc ----------+
| PO Box 859 120 Sixth Street    http://www.hvcomputer.com      |
| Verplanck, NY 10596-0859       Voice mail: (914) 739-5004     |
+------ PC repair locally, filePro programming globally --------+


More information about the Filepro-list mailing list