Returns a column of dyn-dyn variables. |
Synopsis
dyn_anytype getDynAnytype(dyn_dyn_anytype array, int column); |
dyn_bit32 getDynBit32(dyn_dyn_anytype array, int column); |
dyn_bit64 getDynBit64(dyn_dyn_anytype array, int column); |
dyn_bool getDynBool(dyn_dyn_anytype array, int column); |
dyn_char getDynChar(dyn_dyn_anytype array, int column); |
dyn_float getDynFloat(dyn_dyn_anytype array, int column); |
dyn_int getDynInt(dyn_dyn_anytype array, int column); |
dyn_long getDynLong(dyn_dyn_anytype array, int column); |
dyn_string getDynString(dyn_dyn_anytype array, int column); |
dyn_time getDynTime(dyn_dyn_anytype array, int column); |
dyn_uint getDynUInt(dyn_dyn_anytype array, int column); |
dyn_ulong getDynULong(dyn_dyn_anytype array, int column); |
dyn_atime getDynATime(dyn_dyn_atime array, int column); |
Parameters
Parameters |
Meaning |
array |
Dynamic field (matrix) |
colum |
Number of the matrix column |
Return value
Errors
Description
Functions for returning a column of a dyn-dyn variable. Lines that are too short within an array will be ignored. |
Example
main() { dyn_atime dad1, dad2; atime tat1, tat2, tat3, tat4; dyn_atime dat1, dat2; dyn_dyn_atime resDat;
tat1 = makeATime(getCurrentTime(), 0,"System1:_2x2Redu.state.dbConn"); tat2 = makeATime(getCurrentTime(), 1,"System1:_Conn_event_0_1_to_ctrl_1_1.Link1"); tat3 = makeATime(getCurrentTime(), 2,"System1:_2x2Redu.alarm.distConnection"); tat4 = makeATime(getCurrentTime(), 3,"System1:_2x2Redu.alarm.paraSyncAlarm");
dad1 = makeDynATime(tat1, tat2); resDat[1] = dad1;
dad2 = makeDynATime(tat3, tat4); resDat[2] = dad2;
dat1 = getDynATime(resDat, 1); //Returns: //System1:_2x2Redu.state.dbConn (Type: 188 Sys: 1 Dp: 403 El: 10 : 0..0) //System1:_2x2Redu.alarm.distConnection (Type: 188 Sys: 1 Dp: 403 El: 71 : 0..0)
dat2 = getDynATime(resDat, 2); //Returns: //System1:_Conn_event_0_1_to_ctrl_1_1.Link1 (Type: 116 Sys: 1 Dp: 281 El: 3 : 0..0) //System1:_2x2Redu.alarm.paraSyncAlarm (Type: 188 Sys: 1 Dp: 403 El: 68 : 0..0)
DebugN(dat1); DebugN(dat2); } |
Assignment
Availability
UI, CTRL, DP |
See also
V 3.11 SP1
Copyright