I have a message that a regular variable must be used with a For/Next loop.
I was attempting...
The message is clear but since cr.c can be set with a byte value I don't understand why this is not permitted without having to copy the value to/from another 'regular' variable.
Is there a reason for this or just not allowed?
I was attempting...
B4X:
Type Fred(c as Byte, r as Byte)
Dim cr as Fred
For cr.c = 2 to 12
Is there a reason for this or just not allowed?