09-12-2024, 07:09 PM
(09-12-2024, 07:01 PM)SMcNeill Wrote: Look for what you have ln defined as. Check DIM and _DEFINE type statements.I was thinking along this same line earlier but if this were the case then removing the arrays from the print statement and having it work means ln is a number in his case. This is a strange error he is receiving.
The "Unsupported variable used in the For statement" is usually one that triggers when you use an invalid variable type for the FOR..LOOP, such as a STRING variable..
Code: (Select All)Dim ln As String
For ln = 1 To 50
' Print ln, SpeedFactor(ln), Speed(ln)
Next