Applies To:
  • CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01 3.00

Summary:
Question: FormButton will compile quite happily with an invalid mode. Should this occur?

Solution:
Yes, the actual value of an arguments to a function are never checked by the compiler. This is normal procedure in all types of compiled languages, including Visual Basic, Pascal, C, C++ etc. This type of checking is not done as it makes the compiler too dependent on the associated functions. Also under some cases it is impossible to check as the argument may be evaluated at runtime. the only checking is done by the function itself. It is up to the user to check for success or failure of the function.

Keywords:
 

Attachments