Subject Re: IndexError
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Thu, 10 Jun 2021 20:52:53 -0700
Newsgroups dbase.getting-started

On 6/10/2021 8:04 PM, AGOSTINHO wrote:
> Dear Mervyn,
> I'm trying to create  a simple new index with the indexname M_INDEX from a DBF file I created in DBASE DOS V5. (SEE ATTACHED FILE) for results.
>
> Also when I try from the command window I get the same error
> Use Alesie Excl
> Index on merk tag m_merk
>   (DATA ENGINE ERROR: Invalid Parameter)
> Thanks

How large is the field? If it is greater than 100 characters that will
cause problems ... you would need to use left( merk, 100 ) for the index
expression:

index on left( merk, 100 ) tag m_merk

Ken

--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm