tlemar Posted November 20, 2008 Share Posted November 20, 2008 I am trying to call a function from a channel event. Here is the function and the calling event: Function Function rtnRadioStatus(RadioValue) Static RadioStatus Static string RadioStatusColor switch case (RadioValue == 0) RadioStatus = "Unavailable" RadioStatusColor = "Yellow" case (RadioValue == 128) RadioStatus = "Normal" RadioStatusColor = "Green" case (RadioValue > 128) RadioStatus = "Error" RadioStatusColor = "Red" endcase return(RadioStatus + "|" + RadioStatusColor) EndFunction Calling Parameter Static Temp Static TNum Temp = rtnRadioStatus(value) //This is line 4 TNum = find(Temp, "|", 1) TS_RadioStatus = left(Temp,TNum) TS_RadioStatusColor = mid(Temp,TNum,GetLength(Temp)) Returns the following error: C1000 Channel or function not found: Line 4 I have tried to do the same thing from a sequence with the same result. Any help would be apprecriated. Thanks Tracy Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.