GOSUB inside Procedure

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
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 Danilo.

From the german forum wishlist.

NicTheQuick´s wish for PureBasic:
Allow SubFunctions (GOSUB) inside a procedure.

Code: Select all

Procedure mytest()
     OpenConsole
     For a = 1 To 10
         Gosub textout
     Next a
  ProcedureReturn


     textout:
        PrintN("Value = " + Str(a))
     Return


EndProcedure

German PureBasic Forum, http://www.Pure-Board.de


Edited by - Danilo on 11 June 2002 06:08:04