Prev | Current Page 1697 | Next

Michael R. Groh, Joseph C. Stockman, Gavin Powell, and Cary N. Prague

"Access 2007 Bible"

ico???)
End Sub
Notice that both the AppTitle and AppIcon properties are string data types (dbText).
Use the RefreshTitleBar method to see the changes made by setting either the
AppTitle or AppIcon property. The syntax of RefreshTitleBar is simple:
Application.RefreshTitleBar
Getting property values
Getting the value of a property is much easier than setting a property??™s value. The GetOption
method returns the value of a property. The syntax of GetOption is as follows:
vRetVal = GetOption(PropertyName)
where vRetVal is a variant and PropertyName is the name of a property in Table 28-1. The following
code fragment shows how to use the GetOption method to read an option property:
Dim vRetVal As Variant
??? Get the current setting.
vRetVal = Application.GetOption(???AppTitle???)
A variant is used to capture the return value because of the different data types used for startup
properties. Also, a property that has not yet been set may be null, and the variant is the only type
of variable that can accept null values without error.


Pages:
1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709
Epizod III Wirus Róża Strachy Na Lachy Non Iron 91 To mój blues