CamEra Posted March 5, 2009 Share Posted March 5, 2009 Hi, This script global double Hour global double Minute global double This Hour=Floor(SysTime()%86400/3600) Minute=Floor(Systime()%3600/60) This=Floor(Systime()%3600/60) ?Hour ?Minute ?This Produces an error C1000 Channel or function not found etc. on line 11 i.e. ?This, if I move that line up a couple the error stays with this line so appears at line 9. I cannot see the difference between the declaration lines, the setting of the value and the output. Any ideas, or I am just being slow this morning. George Link to comment Share on other sites More sharing options...
AzeoTech Posted March 5, 2009 Share Posted March 5, 2009 "This" is a keyword and can't be used as a variable. Its used in the OOP part of DAQFactory and since you aren't in an object, it doesn't mean anything so gives an error. DAQFactory can sometimes be late about generating errors. It doesn't recognize the reserved word at declaration, and doesn't generate errors for assignment unless the error is on the right side of the =. It wasn't until you actually tried to use "This" that it generated the error. Link to comment Share on other sites More sharing options...
CamEra Posted March 5, 2009 Author Share Posted March 5, 2009 Hi, Thanks, never thought it was a key word. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.