Call sub in Arduino?

Hello,

In VB.net there is the possibility to call another sub using the call statement. Is this also possible in Arduino (C/C++)

Void print() {

// enter code

}

Void loop() {

Call print

}

Something like this.

Thanks in advance.

Yes. Give this a try...

void print( void )
{
}

void loop( void )
{
  print();
}

Good luck, Brian

It works :)

Thanks

See here http://arduino.cc/en/Reference/FunctionDeclaration for details including how to pass parameters and return a value.

Andrew