more G-Labs products

Author Topic: GPIO-Modulex.hgx with 1.1 r509 beta  (Read 1268 times)

January 04, 2016, 11:58:51 AM
Read 1268 times

pinie_pinie

  • ***
  • Information
  • Full Member
  • Posts: 55
Hallo,

Yesterday Update 1.1 R509 loaded. Get now with my imported GPIO module following error message.
Has changed the syntax? I have'm connected all GPIO ports with my own file.
Does anyone have experience collected?

"2016-01-03 19:38:20.6971 Info HomeAutomation.HomeGenie.Automation   1000   Automation Program   Compiler.Warning   CR,12,22: `HomeGenie.Automation.Scripting.ProgramHelper.InputField(string)' is obsolete: `use 'Program.Option' instead'"
"2016-01-03 19:38:20.7117 Info HomeAutomation.HomeGenie.Automation   1000   Automation Program   Compiler.Warning   CR,13,22: `HomeGenie.Automation.Scripting.ProgramHelper.InputField(string)' is obsolete: `use 'Program.Option' instead'"
"2016-01-03 19:38:20.7181 Info HomeAutomation.HomeGenie.Automation   1000   Automation Program   Compiler.Warning   CR,14,22: `HomeGenie.Automation.Scripting.ProgramHelper.InputField(string)' is obsolete: `use 'Program.Option' instead'"
"2016-01-03 19:38:20.7248 Info HomeAutomation.HomeGenie.Automation   1000   Automation Program   Compiler.Warning   CR,15,22: `HomeGenie.Automation.Scripting.ProgramHelper.InputField(string)' is obsolete: `use 'Program.Option' instead'"
"2016-01-03 19:38:20.7309 Info HomeAutomation.HomeGenie.Automation   1000   Automation Program   Compiler.Warning   CR,16,22: `HomeGenie.Automation.Scripting.ProgramHelper.InputField(string)' is obsolete: `use 'Program.Option' instead'"
"2016-01-03 19:38:20.7376 Info HomeAutomation.HomeGenie.Automation   1000   Automation Program   Compiler.Warning   CR,17,22: `HomeGenie.Automation.Scripting.ProgramHelper.InputField(string)' is obsolete: `use 'Program.Option' instead'"
"2016-01-03 19:38:20.7440 Info HomeAutomation.HomeGenie.Automation   1000   Automation Program   Compiler.Warning   CR,18,22: `HomeGenie.Automation.Scripting.ProgramHelper.InputField(string)' is obsolete: `use 'Program.Option' instead'"

January 04, 2016, 04:38:06 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Those warnings indicate that you are using the old "InputField" function.  Gene refactored some code a while back.  The new function that replaced it is "Option".  I have older code that uses the old functions and every time I compile them I see the same warning/error messages.  As of v509, the old functions still work but I suspect that Gene will remove support for them at some point.  When I touch older scripts, I try to update them to the new functions so they won't potentially stop working down the road.

Basically, this is a warning rather than an error and will not keep your script from working as of r509.