mid

Bruce Easton bruce at stn.com
Fri Dec 3 14:13:02 PST 2010


I don't remember which version, but sometime prior to 5.0, you
could not reference  certain expressions for the first argument of
the mid function (including array or lookup references).

Maybe that is the problem.  Try assigning the array reference
to a dummy field and then use the dummy inside mid.

Bruce


Bruce Easton
STN, Inc.




On 12/3/10 4:52 PM, Richard Kreiss wrote:
> Have a program using the following type of code
>
> If:
> Then: dim who(6);who["6"]="Cancel"
>
> This array is then filled in the form NNNN name
>
> If:
> Then: sl(1,.0)=listbox(who)
> If:
> Then: 3=mid(who[sl],"1","4");ab=mid(who[sl],"6","30")
>
> Why am I getting a syntax error that points to [sl]?
>
>
> Richard Kreiss
> GCC Consulting
> rkreiss at gccconsulting.net
>   
>
>
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>



More information about the Filepro-list mailing list