
What am I doing wrong??
Search
What am I doing wrong??
Ok, so I am quite rusty as I haven't used WinCC-OA in 2 years but something doesn't add up here. Can anyone explain what I am doing wrong or missing?


Re: What am I doing wrong??
Hello,
with the function dpNames() you will get a list of dp-elements which match the pattern.
There is no check made if the config you have added at the pattern is really exisiting. Therefore the result is okay.
Best Regards
Leopold Knipp
Senior Support Specialist
with the function dpNames() you will get a list of dp-elements which match the pattern.
There is no check made if the config you have added at the pattern is really exisiting. Therefore the result is okay.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: What am I doing wrong??
But if the config doesn't exist the surely it couldn't possibly match the pattern, right?
Re: What am I doing wrong??
hmm think I got it.. it just doesn't take the config part of the pattern into consideration.
Is there a way to test if a config exists then? I seem to remember having done this but as I said, I am very rusty
Is there a way to test if a config exists then? I seem to remember having done this but as I said, I am very rusty

-
- Posts: 634
- Joined: Mon Aug 02, 2010 10:37 am
Re: What am I doing wrong??
The config exists when:
Code: Select all
:.._type != DPCONFIG_NONE
Re: What am I doing wrong??
Jonathan,
You can do a dpGet() on the ".._type". When the value is not 0 then the config exists.
You can do a dpGet() on the ".._type". When the value is not 0 then the config exists.