Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CLEAR command
#21
One way to clear a slew of variables in main code is to convert a section into a sub, call the sub to do the section when exit those variables are all erased to my understanding of how these things work. But really now days, when memory is so cheap, this is extreme method to save a little bit of variable space.

But the idea of breaking code up into smaller chunks does serve more uses than a little bit of memory savings. It helps make code easy to understand and debug and thus to update with new features. I think it's called refactoring.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Command$(count%) - I can't get a value when using the optional argument "(count%)" Unatic 3 518 08-22-2025, 11:58 AM
Last Post: Unatic
  keyword to get the EXE name and the EXE path instead of parsing Command$(0) ? madscijr 8 1,132 07-22-2025, 08:35 PM
Last Post: hsiangch_ong
  Command$ issues eoredson 8 1,351 05-02-2025, 01:42 AM
Last Post: eoredson
  Locate command on the ttf graphical screens Helium5793 5 702 03-09-2025, 05:47 PM
Last Post: SMcNeill
  The Locate command eoredson 0 430 04-13-2024, 06:27 AM
Last Post: eoredson

Forum Jump:


Users browsing this thread: 2 Guest(s)