Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error building key for index
Message
 
 
To
17/07/2008 07:49:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01331915
Message ID:
01331916
Views:
223
Review Considerations for Creating Index Expressions in the help.
Try
Index On Iif(Empty(lacy), PADR('zzz', LEN(lacy)),lacy) Tag lacy
>
>Help please,
>
>I moved from vfp8 to vfp9.
>
>I get error 2199 on the following code (only in vfp9 even if I add SET ENGINEBEHAVIOR 80).
>
>It is not my source code, I didn't understand the complex index structure necessity but I dont want to touch and the code programmer not avaliable.
>
>Here is the code (error in last line)
>
Create Cursor tmp1 (systid C(3),lacy C(10),qtyoh I,dueflag L)
>Index On Iif(Empty(lacy),'zzz',lacy) Tag lacy
>Set Order To
>INSERT into tmp1 (systid,lacy,qtyoh) ;
>	values('','',1)
>	
>	INSERT into tmp1 (systid,lacy,qtyoh) ;
>	values('STRNG','A',1)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform