Here is what I would like to do.
I would like to create a constant in vb.net that I could make reference to in various locations throughout my code. Below is a constant that I already make reference to throughout for my table name in the database.
Const dbTable As String = "Mailing List"
I would like to go from this:
If Me.BindingContext(DsAddressBook, dbTable).Position = 0 Then
Me.BindingContext(DsAddressBook, dbTable).Position -= 1
To this:
If Me.bxAddressBook.Position = 0 Then
Me.bxAddressBook.Position -=1
bxAddressBook = BindingContext(DsAddressBook, dbTable)
How would I go about achieving this. Help, or even thoughts would be appreciated.
Eraser.
I would like to create a constant in vb.net that I could make reference to in various locations throughout my code. Below is a constant that I already make reference to throughout for my table name in the database.
Const dbTable As String = "Mailing List"
I would like to go from this:
If Me.BindingContext(DsAddressBook, dbTable).Position = 0 Then
Me.BindingContext(DsAddressBook, dbTable).Position -= 1
To this:
If Me.bxAddressBook.Position = 0 Then
Me.bxAddressBook.Position -=1
bxAddressBook = BindingContext(DsAddressBook, dbTable)
How would I go about achieving this. Help, or even thoughts would be appreciated.
Eraser.