Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Funny Coding
#4
(12-30-2024, 04:46 AM)SMcNeill Wrote: I don't think that's even allowed.  You can't use an array like that in a FOR loop.   At least, I don't think you can.

(Moved thread as this isn't any sort of utility at all.  Just a basic observation.)

hi SMcNeill.

This is allowed, please try it and let me know what you think.

Code: (Select All)

FOR a = 1 TO 10
  x(a) = a
NEXT
FOR b = x(1) TO x(10)
  x(b) = b
  PRINT x(b)
NEXT

Thanks.
Reply


Messages In This Thread
Funny Coding - by eoredson - 12-30-2024, 04:39 AM
RE: Funny Coding - by SMcNeill - 12-30-2024, 04:46 AM
RE: Funny Coding - by gaslouk - 12-30-2024, 06:49 AM
RE: Funny Coding - by vince - 12-30-2024, 06:31 AM
RE: Funny Coding - by Kernelpanic - 12-30-2024, 09:54 PM
RE: Funny Coding - by eoredson - 12-31-2024, 05:20 AM
RE: Funny Coding - by SMcNeill - 12-31-2024, 10:16 AM
RE: Funny Coding - by bplus - 12-31-2024, 01:41 PM
RE: Funny Coding - by eoredson - 01-01-2025, 12:30 AM
RE: Funny Coding - by Pete - 01-01-2025, 02:13 AM
RE: Funny Coding - by eoredson - 01-01-2025, 05:09 AM



Users browsing this thread: 3 Guest(s)