Removed test that expression is not a keyword in FBDVariableDialog
authorLaurent Bessard
Wed, 29 May 2013 09:26:56 +0200
changeset 1187 be891953958f
parent 1186 0ce4104d58ed
child 1188 63afb5833bd8
Removed test that expression is not a keyword in FBDVariableDialog
dialogs/FBDVariableDialog.py
--- a/dialogs/FBDVariableDialog.py	Wed May 29 09:22:40 2013 +0200
+++ b/dialogs/FBDVariableDialog.py	Wed May 29 09:26:56 2013 +0200
@@ -180,8 +180,6 @@
         value = self.Expression.GetValue()
         if value == "":
             message = _("At least a variable or an expression must be selected!")
-        elif value.upper() in IEC_KEYWORDS:
-            message = _("\"%s\" is a keyword. It can't be used!") % value
         if message is not None:
             message = wx.MessageDialog(self, message, _("Error"), wx.OK|wx.ICON_ERROR)
             message.ShowModal()