Controlling Program Flow |
In object-oriented applications, methods are implemented in CLASS blocks or USECLASS blocks. These methods are usually invoked with dot notation. See Accessing Object Attributes and Methods with Dot Notation for information about dot notation.
You can also send methods to an object by using CALL SEND, and you can send a method to a control in a FRAME entry by using CALL NOTIFY. See SEND and NOTIFY for more information.
Methods may also be stored in SCL, PROGRAM, or SCREEN entries. If the method is stored in an SCL entry, then call the method with the CALL METHOD routine. If the method is stored in a PROGRAM or SCREEN entry, you can use the LINK or GOTO statements to call it. See Calling a Method That Is Stored in an SCL Entry, Branching to a Labeled Section (LINK) in SCL Programs, and Branching to Another Entry (GOTO) in SCL Programs for more information.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.