Shop OBEX P1 Docs P2 Docs Learn Events
parameters in subroutines — Parallax Forums

parameters in subroutines

NeXT-GenerationNeXT-Generation Posts: 11
edited 2012-04-19 14:19 in BASIC Stamp
Hello, I was wondering if it's possible to pass parameters to subroutines in PBASIC?

Like in C, it would be:
void displayParameter(string parameter)
{
   printf(parameter);'
}

displayParameter("Hello!  I'm a parameter!");

Is something like this possible in PBASIC? Or do I just have to use variables?

Comments

Sign In or Register to comment.