H HARRY Active Member Licensed User Longtime User Apr 19, 2010 #1 Hi, Previous code won't compile anymore. In a program I have the following code: In Globals: Dim Type (TagCode,TagType,TagCount,TagOffset) Tags(0) In a sub: Dim Tags(NumberOfTags) Look at new version, this one was sent too early and incomplete. For i = 0 To NumberOfTags-1 Tags(i).TagCode =GetValue(22 + (i*12),2) etc Last edited: Apr 19, 2010
Hi, Previous code won't compile anymore. In a program I have the following code: In Globals: Dim Type (TagCode,TagType,TagCount,TagOffset) Tags(0) In a sub: Dim Tags(NumberOfTags) Look at new version, this one was sent too early and incomplete. For i = 0 To NumberOfTags-1 Tags(i).TagCode =GetValue(22 + (i*12),2) etc
M mjcoon Well-Known Member Licensed User Apr 19, 2010 #2 Errm, what is the compile failure, and for which of those lines? My code is similar, except that I establish the array size using Array() and step through it using ArrayLen(), but it works with 6.90 beta. Mike.
Errm, what is the compile failure, and for which of those lines? My code is similar, except that I establish the array size using Array() and step through it using ArrayLen(), but it works with 6.90 beta. Mike.
Erel B4X founder Staff member Licensed User Longtime User Apr 19, 2010 #3 The correct syntax for redeclaring types is: Dim Tag (NumberOfTags, 4) 4 is the number of fields in this type. This wasn't changed in v6.90, the difference is that now you get an error during compilation.
The correct syntax for redeclaring types is: Dim Tag (NumberOfTags, 4) 4 is the number of fields in this type. This wasn't changed in v6.90, the difference is that now you get an error during compilation.