syntax error message
Laura Brody
laura at hvcomputer.com
Wed Mar 10 09:52:25 PST 2010
Quoting Richard Kreiss <rkreiss at gccconsulting.net>:
> For the following code where <L> is the last element of the array
> who to use when the listbox is displayed,
>
> dim who(6) on line 10.
>
> <L> can be from 3-6 in value
[...]
> Following error message
>
>
> *** 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.
>
> SL is cast in auto process as sl(1,.0)
>
> Changed the braces to parentheses and still got the error.
>
> Anyone see the error?
Yes.
The problem is that MID() does not allow arrays. Assign
who[sl] to a dummy field and then use the dummy field in
the MID() statement.
--
Laura Brody
+------------- 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