• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Functions > Creating Homemade Functions

Creating Homemade Functions

Now that you know how to call functions (that is, how to use them), we can look at how to write them. The concepts of accepting parameters, returning values, and acting like methods should start to really make sense when you apply them to a purpose. You’ll learn not only how to write functions, but also how they can help you. It’s not as though this were an exercise in learning vocabulary words such as parameters and methods; rather, you will get to the point where you can reach for these tools as needed to solve problems.

Basics

Functions are written in keyframes. I find it much easier to type in the basic form while in Expert Mode. Here’s the skeleton form:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint