Dear Cspro Developer Team,
I would like to know how to delete a case in an external dictionary/data file under conditions, by example where ID items = a specific number.
In the future, when we'll be able to use sqlquery on items, this will be very easy!
Thanks in advance for your incredible support to the CsproUsers Community!
Delete case under conditions
-
htuser
- Posts: 687
- Joined: December 19th, 2011, 6:26 pm
- Location: Silver Spring Area, MD, USA
Delete case under conditions
G.VOLNY, a CSProuser from Haiti, since 2004
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Delete case under conditions
This is very easy even now. For example, if you only had one ID item, you could do this:
ID_ITEM = 10;
if loadcase(MY_DICT, ID_ITEM) then
delcase(MY_DICT);
endif;
if loadcase(MY_DICT, ID_ITEM) then
delcase(MY_DICT);
endif;
-
htuser
- Posts: 687
- Joined: December 19th, 2011, 6:26 pm
- Location: Silver Spring Area, MD, USA
Re: Delete case under conditions
Thank you Greg. It's very easy.
Best Regards,
Best Regards,
G.VOLNY, a CSProuser from Haiti, since 2004