Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loop variables
#7
We've discussed this type of thing before, but the main issue is someone having the time and dedication to sit down and work it into the language for us.  

FOR i AS INTEGER = 1 TO 10 STEP 2
   PRINT i
NEXT

In the above, i would only be an integer for that short FOR...NEXT routine, and the best usage for this type of coding would be for temp variables with use with OPTION _EXPLICIT so one doesn't have to stop and declare that variable to prevent error/warning messages.
Reply


Messages In This Thread
Loop variables - by Kernelpanic - 05-18-2024, 08:13 PM
RE: Loop variables - by DSMan195276 - 05-18-2024, 08:20 PM
RE: Loop variables - by SMcNeill - 05-19-2024, 07:45 PM
RE: Loop variables - by Kernelpanic - 05-18-2024, 08:43 PM
RE: Loop variables - by Kernelpanic - 05-18-2024, 09:55 PM
RE: Loop variables - by DSMan195276 - 05-19-2024, 12:43 AM
RE: Loop variables - by Kernelpanic - 05-19-2024, 07:22 PM
RE: Loop variables - by SMcNeill - 05-19-2024, 07:33 PM



Users browsing this thread: 3 Guest(s)