Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
-
Victor.Ermakov
- Posts:25
- Joined: Fri Oct 20, 2017 8:50 am
dynAppend on dyn_string destination clears a source data, when source is element of dyn_dyn_string list
Post
by Victor.Ermakov »
Code: Select all
dynAppend(AlarmPipeList,PipeNameList[Idx]);
PipeNameList[Idx] clears by execution when it's last item of PipeNameList and contains more than one item
Code: Select all
dyn_string PipeDPList = PipeNameList[Idx];
dynAppend(AlarmPipeList,PipeDPList);
this is worked correct
-
gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: dynAppend on dyn_string destination clears a source data, when source is element of dyn_dyn_string list
Post
by gschijndel »
You could use the function 'dynAppendConst' to keep the source data.
-
leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: dynAppend on dyn_string destination clears a source data, when source is element of dyn_dyn_string list
Post
by leoknipp »
When looking at the documentation you will find the information that a dyn array is cleared when it is used at dynAppend().
Best Regards
Leopold Knipp
Senior Support Specialist