Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP9.0 index with ttoc(MyDateTime)
Message
From
03/11/2005 14:29:04
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064981
Message ID:
01065145
Views:
20
Thank you.

>You're using in the index key function (TTOC()) that can return value of different length. Change it to TTOC(,1) which is specificly designed to be used in indexes. See Considerations for Creating Index Expressions in VFP9 help or online at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp9/html/576a2953-04ff-4a66-9e38-3a3d9c990b72.asp?frame=true

>>I'm using vfp9.0 with a pre-existing table that has a datetime field. This field is a part of an index (employeeID+ttoc(MydateTime)).
>>
>>When I insert a record, with buffering 5, it gives me an error that states that it has error creating the index for the asssociated tag.
>>
>>I run it under vfp6.0/vfp8.0 and it works fine.
>>
>>Any clue why I'm having this issue with 9.0? Has anyone else had this problem?
The American Republic will endure, until politicians realize they can bribe the people with their own money.
- Alexis de Tocqueville

No man’s life, liberty, or property is safe while the legislature is in session.
– Mark Twain (1866)
Previous
Reply
Map
View

Click here to load this message in the networking platform