Page 1 of 1

dynAppend on dyn_string destination clears a source data, when source is element of dyn_dyn_string list

Posted: Tue Nov 09, 2021 11:06 am
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

Re: dynAppend on dyn_string destination clears a source data, when source is element of dyn_dyn_string list

Posted: Tue Nov 09, 2021 2:46 pm
by gschijndel
You could use the function 'dynAppendConst' to keep the source data.

Re: dynAppend on dyn_string destination clears a source data, when source is element of dyn_dyn_string list

Posted: Thu Nov 11, 2021 9:23 am
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