syntax error message

Richard Kreiss rkreiss at gccconsulting.net
Wed Mar 10 11:43:31 PST 2010



> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at spamcop.net]
> Sent: Wednesday, March 10, 2010 2:01 PM
> To: Richard Kreiss
> Cc: rkreiss at gccconsulting.net; 'filePro'
> Subject: Re: syntax error message
> 
> On 3/10/2010 1:28 PM, Richard Kreiss wrote:
> [...]
> >>> dim who(6) on line 10.
> >>>
> >>> <L>   can be from 3-6 in value
> >> [...]
> >>> 306  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
> >>>          ◄ If:         @fd="3"
> >>>          Then:         3=mid(who[sl],"1","4");sa=mid(who[sl],"6","30");RETURN
> >> [...]
> >>> *** A filePro Error Has Occurred ***
> >>>
> >>> Line Number: 306
> >>>
> >>>           3=mid(who[sl],"1","4");sa=mid(who[sl],"6","30");RETURN
> >>>                     ^
> >>> Process contains a syntax error at position indicated.
> >> [...]
> >>
> >> What version of filePro are you running?  Older versions wouldn't allow
> >> array or lookup references as the first parameter to MID().
> >
> > Windows 5.6.10
> 
> Works fine here.  This gives no syntax error:
> 
>    1  -------   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ◄ If:
>         Then: end
>    2  -------   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ◄ If:
>         Then: dim who(6)
>    3  -------   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ◄ If:
>         Then: sl = "1"
>    4  -------   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ◄ If:
>         Then: xx = mid(who[sl],"1","4"); zz=mid(who[sl],"6","30")
> 
> Does this snippet work on your system?
> 
> --
> Kenneth Brody

Modified the program to use an array whose  dim whose(5)

Everything worked as it should.

I have no idea why the array who would fail in the processing table and not in my test  table.

I even tried testing the programming at the line just below the dim statement.  That didn't work.

Richard




More information about the Filepro-list mailing list