I used a string to query alerts of a DP. The result is a dyndyn array with 4 columns and I'd like to convert all elements in the fourth column to a dyn array so I used getDynAnyType() to resolve but it seems not work in my case. The code is below. Can anyone help me?. Thanks in advance!
void AlertColor(string dp, dyn_dyn_anytype color)
{
string sFilterQuery = "SELECT ALERT '_alert_hdl.._alert_color','_alert_hdl.._act_state' FROM '" +$DP+"'";
dyn_dyn_anytype ddaQueryResult;
dyn_anytype daState;
dpQuery(sFilterQuery, ddaQueryResult);
daState = getDynAnyType(ddaQueryResult,4);
}
getDynAnyType() function
- vy.nguyenthanh@biendongco.vn
- Posts:13
- Joined: Wed Sep 18, 2019 10:49 am
getDynAnyType() function
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: getDynAnyType() function
I have tested it with the result of a dpQuery() and getDynAnytype() works.
Did you check, e.g. with getLastError(), if the dpQuery() returned a correct result?
Best Regards
Leopold Knipp
Senior Support Specialist
Did you check, e.g. with getLastError(), if the dpQuery() returned a correct result?
Best Regards
Leopold Knipp
Senior Support Specialist