Not sure if my code is incorrect or if there is a bug.
On Button Click
I get the following error:Code:sSelectedText = TextFile.ReadToString("AutoPlay\\SoftwareDIS\\NWClient\\admin\\Unattended.txt"); Input.SetText("Input1", sSelectedText); ---hide/show buttons----- Button.SetVisible("NWClienSave", true); Button.SetVisible("BatSave", false);
On Click line 4: attempt to index global "button' (a string value)
My Global Code
Code:---calendar---- function SetUpTables() tdayofweek = {}; tdayofweek[1] = "Sunday"; tdayofweek[2] = "Monday"; tdayofweek[3] = "Tuesday"; tdayofweek[4] = "Wednesday"; tdayofweek[5] = "Thursday"; tdayofweek[6] = "Friday"; tdayofweek[7] = "Saturday"; tmonth = {}; tmonth[1] = "January"; tmonth[2] = "February"; tmonth[3] = "March"; tmonth[4] = "April"; tmonth[5] = "May"; tmonth[6] = "June"; tmonth[7] = "July"; tmonth[8] = "August"; tmonth[9] = "September"; tmonth[10] = "October"; tmonth[11] = "November"; tmonth[12] = "December"; end
Not sure why setting a button to visible or hidden would cause this error. Thanks

Reply With Quote