Announcement

Collapse
No announcement yet.

Calling methods or functions in Blocks

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calling methods or functions in Blocks

    In Blocks programming, is there a way to create and reference methods and functions? Examples would include scaling the joystick controls or writing a method such as multiply by 5 in one part of the program and then using it in another part of the program without having to write the method again.
    Thanks in advance,
    Tom Lum

  • #2
    Originally posted by FTC6180 View Post
    In Blocks programming, is there a way to create and reference methods and functions? Examples would include scaling the joystick controls or writing a method such as multiply by 5 in one part of the program and then using it in another part of the program without having to write the method again.
    Thanks in advance,
    Tom Lum
    Yes, you can create functions and then call them. In the toolbox, there is a Functions category (near the bottom).

    Last edited by Comrade 17; 02-10-2017, 01:56 AM.

    Comment

    Working...
    X