control script for removing periphery address

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
mcmullan
Posts:16
Joined: Mon Jan 31, 2011 10:18 am

control script for removing periphery address

Post by mcmullan »

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

Post by leoknipp »

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

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: control script for removing periphery address

Post by gschijndel »

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

Post by mcmullan »

dpSet("System1:global_vars.NameDemo:_address.._type", DPCONFIG_NONE);

Seems to do the trick.

Thanks!!

4 posts • Page 1 of 1