jordanking
Programmer
- Sep 8, 2005
- 351
Hello,
I was wondering if there is a way to include an option list of public constants in the declaration of public functions?
I have a public function with constants declared:
I want to have the above constants appear as options for the "intAction" varaible when the function is called, like when you open a recordset and the following options appear once you enter the coma after the connection variable. (i hope that makes sense)
adOpenDynamic
adOpenForwardOnly
adOpenKeyset
adOpenStatic
Is this possible?
I was wondering if there is a way to include an option list of public constants in the declaration of public functions?
I have a public function with constants declared:
Code:
Public Const ActionInsert As Integer = 1
Public Const ActionUpdate As Integer = 2
Public Const ActionDelete As Integer = 5
Public Const ActionImport As Integer = 6
Public Const ActionExport As Integer = 7
Public Const ActionCascadeUpdate As Integer = 8
Public Const ActionCascadeDelete As Integer = 9
Public Const ActionInvoice As Integer = 10
Public Function uf_Audit(intRecord As Integer, intRecTp As Integer, intAction As Integer, strDetail As String, frm As Form) As Integer
etc.....
I want to have the above constants appear as options for the "intAction" varaible when the function is called, like when you open a recordset and the following options appear once you enter the coma after the connection variable. (i hope that makes sense)
adOpenDynamic
adOpenForwardOnly
adOpenKeyset
adOpenStatic
Is this possible?