Prev | Current Page 2063 | Next

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

"Access 2007 Bible"

id
Case ???lblWelcome???
label = GetWelcomeMessage()
Case ???lblToday???
label = ???Today is: ??? & FormatDateTime(Date, vbLongDate)
Case ???lblOrderCount???
label = GetSalesCountString()
Case ???lblCompany???
label = ???Name: ??? & DLookup(???Company???, ???tblContacts???)
Case ???lblCompanyLocation???
label = ???Location: ??? & DLookup(???City???, ???tblContacts???) _
& ???, ??? & DLookup(???State???, ???tblContacts???)
End Select
End Sub
A control??™s id property, of course, is the name assigned to the control in the XML:


Because the id properties are different, both of these Label controls use the same callback procedure.
The callback uses the id to determine which label has triggered the callback.
Because the getLabel attribute specifies where the control gets its text, the getLabel attribute
could be just as easily written as follows:

In this case, no callback is used, and the label is filled with a literal text string.


Pages:
2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075
sklep z lampami ciąża ginekolog oświetlenie lampy Hotel Rzym