# IPlugVST & case effSetProgram

**URL:** <https://iplug2.discourse.group/t/iplugvst-case-effsetprogram/229>\
**Category:** Uncategorized\
**Created:** [21 October 2020 07:49 UTC](https://iplug2.discourse.group/t/iplugvst-case-effsetprogram/229 "2020-10-21T07:49:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FullBucket](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/fullbucket/32/10_2.png) [@FullBucket](https://iplug2.discourse.group/u/FullBucket)\
**Post date:** [21 October 2020 07:49 UTC](https://iplug2.discourse.group/t/iplugvst-case-effsetprogram/229/1 "2020-10-21T07:49:50Z")

</div>

I guess this has been asked before (at least at the old WDL forum): In IPlugVST::VSTDispatcher we still have the construct

```
case effSetProgram:
{
  if (_this->DoesStateChunks() == false)
  {
    _this->ModifyCurrentPreset(); // TODO: test, something is funny about this http://forum.cockos.com/showpost.php?p=485113&postcount=22
  }
...

```

For my plugins I found that I have to comment out the “if (\_this-\>DoesStateChunks() == false)” or else programs will not get stored when changed via the host. Do you guys have the same issue or is there something potentially wrong with what I am doing/expecting?

Cheers, Björn
