fieldlen question

Barry Wiseman barry at gensoftdes.com
Mon Jan 8 10:15:57 PST 2007



Don Coleman wrote:
> Attempting to use fieldlen to determine the length of individual fields I
> need to string together and trim by priority.  Clearly I have something
> incorrect because in the example below AB=0.  Could someone point out my
> error so that AB=7 (COLEMAN being 7 characters).
> 
>                              Processing: test
> 
>    1 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>          If: 
>        Then: end
>    2 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
> @ENTSEL  If: 
>        Then: AA(10,*)="COLEMAN"
>    3 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>          If: 
>        Then: AB=fieldlen(-,AA)
>    4 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>          If: 
>        Then: SHOW "AB="{AB;display
>    5 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>          If: 
>        Then: end

Try:

	ab=len(aa { "")

-----------------------------------------------------------------
  Barry Wiseman                              barry at gensoftdes.com
  Genesis Software Designs, Inc.            Voice: (212) 889-9191
  18 E. 41 Street, New York, NY 10017         Fax: (212) 889-1589
-----------------------------------------------------------------



More information about the Filepro-list mailing list