Is using "End" required?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

I have a few small apps for my own use that use Repeat...Until and then exit,
without using End after the loop. Is that okay to do, or should I be using
End to "clean up" stuff?


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.
I have a few small apps for my own use that use Repeat...Until and then exit,
without using End after the loop. Is that okay to do, or should I be using
End to "clean up" stuff?


PB - Registered PureBasic Coder
If I understand you correctly, you only want to know if a END is neccessary at the END of your Source. (Or another position where you quit your app)

Normaly, PureBasic frees all the stuff it allocates itselfes after exit. Note that it does not free mem, for eg., that you allocated by api commands or something like that.

Mike

Tranquilizer/ Secretly!
Registred PureBasic User
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

The END command isn't needed if you program termins atfer a loop.

Fred - AlphaSND
Post Reply