ValDog Active Member Licensed User Longtime User Jul 2, 2014 #1 I have an Activity module which is giving me an unusual error when I test compile. In Globals I declare an array: Dim Data(512) As Double In Activity_Create I have the following code: Dim i as Int i = 0 Data(i) = 128 : i = i + 1 ... When I click on Test Compilation I get the following error: Error parsing program. Error description: Use of undeclared array: data Occurred on line: 35 Data(i) = 128 : i = i + 1 I am baffled - can anyone help me? Update: Don't know why that was happening, but I rename Data to Datum and the Test Compilation worked just fine... ??? Last edited: Jul 2, 2014
I have an Activity module which is giving me an unusual error when I test compile. In Globals I declare an array: Dim Data(512) As Double In Activity_Create I have the following code: Dim i as Int i = 0 Data(i) = 128 : i = i + 1 ... When I click on Test Compilation I get the following error: Error parsing program. Error description: Use of undeclared array: data Occurred on line: 35 Data(i) = 128 : i = i + 1 I am baffled - can anyone help me? Update: Don't know why that was happening, but I rename Data to Datum and the Test Compilation worked just fine... ???
LucaMs Expert Licensed User Longtime User Jul 2, 2014 #2 Almost certainly Data is a reserved word No, it is not. I tried and it works, no errors. Last edited: Jul 2, 2014 Upvote 0