261

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: er] = 0 AND [Argument] = 'Default' #ÿÿ(###·# #ÿÿ(#########o#ÿÿ####œ#`#####à###4# Update the caption and fill in the list of options.###### #ÿÿ"œ$#¶###$#"### #ÿÿ(# #######A@&#####o#ÿÿ ###œ# #####à###/# Fill in the options for this switchboard page.###à##### The number of buttons on the form.#######]#¬###ò#à#######]#ò#ø###]#ò#####]#ò#(###]#ò#@###à###/# Set the focus to the first button on the form,###à###-# and then hide all of the buttons on the form#####à###9# but the first. You can't hide the field with the focus.# #ÿÿ"[email protected]#####ÿ# #0#þ#¬### #(#œ#######·#¶###Option #0###$#ÿÿ##(#6#####·#¶###OptionLabel# #0###$#ÿÿ##(#6#######ÿ# #0#þ#È#######à###.# Open the table of Switchboard Items, and find####à###*# the first item for this Switchboard Page.í# #8#!#:#!#<#.#*#######¶#!#SELECT * FROM [Switchboard Items]#'#.####### #.#¶#,# WHERE [ItemNumber] > 0 AND [SwitchboardID]=## #ÿÿ"œ>###'#.##### #.#¶### ORDER BY [ItemNumber];###'#.###í#¶###ADODB.Recordset#$#@###.#,# #.# #*#¬### #,#B@####à##### 1 = adOpenKeyset###à###3# If there are no options for this Switchboard Page,#######à###=# display a message. Otherwise, fill the page with the items.##### #,#!#B###œ#####¶#,#There are no items for this switchboard page #ÿÿ"œD#(# #####d#ÿÿœ### #,#!#B#######ô#·#¶###Option #,#"œF###$#ÿÿ##(#6#·#¶###OptionLabel# #,#"œF###$#ÿÿ##(#6### #,#"œ$#¶###OptionLabel# #,#"œF###$#ÿÿ##(# ##### #,[email protected]#########ó#ÿÿà###k#ÿÿØ###à###&# Close the recordset and the database.#### #,[email protected]#########í#°#.#,#í#°#.#*#o#ÿÿœ###œ#X#####à###2# This function is called when a button is clicked.à###+# intBtn indicates which button was clicked.#######à###1# Constants for the commands that can be executed.#]#¬###ò#Ø#######]#¬###ò#ð#######]#¬###ò#########]#¬###ò# #######]#¬###ò#8#######]#¬###ò#P#######]#¬###ò#h#######]#¬###ò#œ#######]#¬# #ò#œ#######à### # An error that is special cased.##]#¬#Å ò#°#######]#ò#È###]#ò#à###]#ò#ø###É#b#è###à###-# Find the item in the Switchboard Items table#####à###1# that corresponds to the button that was clicked.#í# #8#!#:#!#<#.#*#######í#¶###ADODB.Recordset#$#@###.#,#¶#"#SELECT * FROM [Switchboard Items] '#.####### #.#¶###WHERE [SwitchboardID]=## #ÿÿ"œ>###¶### AND [ItemNumber]=## #L###'#.##### #.# #*#¬### #,#B@####à##### 1 = adOpenKeyset###à###<# If no item matches, report the error and exit the function.###### #,#!#B###œ#####¶#7#There was an error reading the Switchboard Items [email protected]######### #,[email protected]#########í#°#.#,#í#°#.#*#z#ÿÿÈ###k#ÿÿÀ### #,#"œf#ê#######à##### Go to another switchboard.####### #N#K#T#¶#%#[ItemNumber] = 0 AND [SwitchboardID]=# #,#"œh### #ÿÿ(#######à##### Open a form in Add mode.# #P#K#T# #,#"œh#Ð#Ð#Ð# #n# [email protected]#######à#### Open a form.##### #R#K#T# #,#"œh# [email protected]#########à####...
View Full Document

This note was uploaded on 10/31/2013 for the course ADMI 101 taught by Professor Mendez during the Fall '10 term at Universidad Metropolitana.

Ask a homework question - tutors are online