Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1868

Keywords common to PureBasic and TCC

$
0
0
I thought I would try to create my own Gosub command, via a PureBasic created plugin.

Ref: How to? - Name of current running gosub routine?

Here's the PureBasic code for the Gosub replacement;
Code:
ProcedureDLL.i MyGosub(*lpszString)
  Static theArg.s
  
  theArg = PeekS(*lpszString)
  
  theArg = Trim(theArg)
  
  If Len(theArg) = 0
    Command_("echo USAGE: Gosub label",0)
    ProcedureReturn #Null 
  Else
    Command_("set _gosub=" + theArg,0)
    Command_("Gosub " +...

Read more

Viewing all articles
Browse latest Browse all 1868

Trending Articles