Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexseek
Message
From
15/07/2004 15:10:10
 
 
To
15/07/2004 14:46:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00924849
Message ID:
00924868
Views:
18
>Not sure what you want to do. Are you trying to insert a new record and check if the key already exist? If so, you are going into trouble in a multiuser/multisession environment. Better to use an auto-increment integer field, a GUID or a reference table for that.
>
>>How to check if one key already exists using indexseek. I know that indexseek does not consider the current record when I am inserting, but when the record is not new the indexseek check the current record too.

I have one table with one column that is defined with primary key. In this table I have a second column that could be defined with candidate index, but it can not because this column admit no value for that. But if the second column have one value this value must be unique.

I would like to check the unique value for the second column with indexseek. When I am inserting a new record no problem, but when I am updating one record the indexseek validate against the current record too, and it says that the record already exists.
Antonio Carlos Kleinübing
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform