Delete case under conditions

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Delete case under conditions

Post 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!
G.VOLNY, a CSProuser from Haiti, since 2004
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Delete case under conditions

Post 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;
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Delete case under conditions

Post by htuser »

Thank you Greg. It's very easy.
Best Regards,
G.VOLNY, a CSProuser from Haiti, since 2004
Post Reply