Code: Alles auswählen
destinationobj.State(bat.State());
bat ist ein einfacher String.
Machs mal so:
Code: Alles auswählen
integer bat = dom.GetObject(ID_CHANNELS)).Get("HB-UNI-Sen-CAP-MOIST JPCAPM0003:1").DPByHssDP("HUMIDITY").Value();
dom.GetObject("Rasen").State(bat.ToString(0));
Code: Alles auswählen
integer bat = dom.GetObject("BidCos-RF.JPCAPM0003:1.HUMIDITY").Value();
dom.GetObject("Rasen").State(bat.ToString(0));