more G-Labs products

Author Topic: Security Alarm System compiler warning  (Read 608 times)

January 05, 2016, 04:29:04 PM
Read 608 times

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
While trying to configure my IP Camera as a motion detect sensor I noticed this complier warning in the Security Alarm system

TC,15,13: `HomeGenie.Automation.Scripting.ProgramHelper.AddInputField(string, string, string)' is obsolete: `use 'Program.AddOption(<field>, <defaultValue>, <description>, <type>)' instead'

I didnt make any changes to the Security Alarm System so I'm curious to know why this is appearing.
« Last Edit: January 05, 2016, 09:58:48 PM by petediscrete »

January 05, 2016, 07:08:38 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
This is a standard warning indicating that the "AddInputField" function is old and should be replaced with the "AddOption" function.  It currently works either way but at some point I assume Gene will fully deprecate the old function call.  You can leave it for now or update to the new function.

January 05, 2016, 09:57:27 PM
Reply #2

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
As long as it doesn't cause me a problem I've no issue there.