Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Can I Change Uniqueness of index STOCKID is violated
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00702776
Message ID:
00702785
Views:
11
>Hi All,
>i am using Primary key index on table such as StockID it gives error when i entered exist value on the table this is normal .. so i want to give this error "Uniqueness of index STOCKID is violated " in another language eg. Turkish or another one .
>
>How can i do this ? or what should i do on textboxes or grid control events ?
>
>TIA

Two things come to mind:

1. Check for the existence of the key before updating the table. You can use IndexSeek() for this and the record pointer won't move.
2. Change resource files. This message is contained in the VFP?ENU.DLL resource file. If you use some other resource file (e.g. Turkish, if it exists), the message will be in that language.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform