Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this index syntax
Message
From
21/02/2008 02:55:54
 
 
To
20/02/2008 20:01:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01294555
Message ID:
01294613
Views:
23
>Hi
>just wondering whats wrong with syntax below !!?
>
>index on trim(upper(surname))+trim(upper(firstnames)) tag NAMEUNIQUE FOR internal=1 CANDIDATE
>
>the error is ,Command contains unrecognized phrase/keyword (Error 36)
>
>if i remove keyword "candidate" it goes thru fine but i need to create unique index.
>any ideas much appreciated

The reason for this error is that the index expression does not always create index keys of fixed length, which is a requirement.
index on padr(upper(trim(surname)+trim(firstnames)),50) tag NAMEUNIQUE  FOR  internal=1 CANDIDATE
Or even shorter
index on padr(upper(surname-firstnames),50) tag NAMEUNIQUE  FOR  internal=1 CANDIDATE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform