home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _D54D7F4D015545F0AE17C2C821A035A3 < prev    next >
Text File  |  2003-03-07  |  1KB  |  24 lines

  1. Quattro Pro VBA Events
  2.  
  3. Visual Basic for Applications (VBA) is an event-driven programming language. Most of the code you create is written to respond to an event. An event is an action that is recognized by VBA; for example, clicking a button or choosing an option from a list box. Unlike traditional procedural programming, in which the program starts at line 1 and executes line by line, event-driven programming executes code in response to events.
  4.  
  5. All events in Quattro Pro are code placeholders. It is up to you to code the response. All events are called in response to a specific action. When an action occurs, the appropriate event will be called and the code located within the event is executed. You can create simple or complex events. You can code a single line that displays a Message Box or write an entire procedure that interacts with a database. 
  6.  
  7. All events are members of the Document class. The name of the object is the same as the class. There are four events in Quattro Pro.
  8.  
  9. Quattro Pro Events
  10.  
  11.     AfterOpen()
  12.  
  13.     BeforeSave()
  14.  
  15.     AfterSave()
  16.  
  17.     BeforeClose()
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.