Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect if an index is part of a collection
Message
From
10/01/2013 10:23:18
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01561962
Message ID:
01562029
Views:
37
>Rob gave the answer but you *might* get by just by checking the Remove() return value. This will be false if the item was not found - but also false if the Remove() failed for some other reason (which is the possible downside)

In my case, this was generating an error yesterday. This is why I had to adjust.

But, what I do not understand is why we can assign a primary key when adding an item but cannot use it when removing it. We can only use the 1-based incremental value for removing an item.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform