PLCOpenEditor.py
changeset 266 4f102c996fa3
parent 262 3b92f0b96d31
child 268 5508af39d1f7
equal deleted inserted replaced
265:23aad5ae0dc1 266:4f102c996fa3
  3730                     message = "Invalid value \"%s\" for location"%data
  3730                     message = "Invalid value \"%s\" for location"%data
  3731                     values = None
  3731                     values = None
  3732                 if values is not None and values[1] == "location":
  3732                 if values is not None and values[1] == "location":
  3733                     location = values[0]
  3733                     location = values[0]
  3734                     variable_type = self.ParentWindow.Table.GetValueByName(row, "Type")
  3734                     variable_type = self.ParentWindow.Table.GetValueByName(row, "Type")
  3735                     base_type = self.ParentWindow.Controler.GetBaseType(variable_type, self.Debug)
  3735                     base_type = self.ParentWindow.Controler.GetBaseType(variable_type)
  3736                     message = None
  3736                     message = None
  3737                     if location.startswith("%"):
  3737                     if location.startswith("%"):
  3738                         if base_type != values[2]:
  3738                         if base_type != values[2]:
  3739                             message = "Incompatible data types between \"%s\" and \"%s\""%(values[2], variable_type)
  3739                             message = "Incompatible data types between \"%s\" and \"%s\""%(values[2], variable_type)
  3740                         else:
  3740                         else: