Page 1 of 1

Delete case under conditions

Posted: November 11th, 2018, 11:22 pm
by htuser
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!

Re: Delete case under conditions

Posted: November 12th, 2018, 8:17 am
by Gregory Martin
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;

Re: Delete case under conditions

Posted: November 12th, 2018, 5:50 pm
by htuser
Thank you Greg. It's very easy.
Best Regards,