control script for removing periphery address
- mcmullan
- Posts:16
- Joined: Mon Jan 31, 2011 10:18 am
control script for removing periphery address
How do you delete an address config via scripting without deleting the actual dp?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: control script for removing periphery address
If you want to delete a config simply do a dpSet() for the _type attribute with value "0" (null).
Best Regards
Leopold Knipp
Senior Support Specialist
Best Regards
Leopold Knipp
Senior Support Specialist
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: control script for removing periphery address
I would advise to use the constant 'DPCONFIG_NONE' instead of the value zero for readability.
- mcmullan
- Posts:16
- Joined: Mon Jan 31, 2011 10:18 am
Re: control script for removing periphery address
dpSet("System1:global_vars.NameDemo:_address.._type", DPCONFIG_NONE);
Seems to do the trick.
Thanks!!
Seems to do the trick.
Thanks!!