Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating a list control

Status
Not open for further replies.

mpsoutine

Programmer
Jan 6, 2003
87
US
Hi,

I'll give an overview of my program. In my FormView class the user clicks the "Find Trade" button. This generates a "FindTrade" dialog box which has a list control populated with the contents of a database as well as an "Edit" button.

The user selects an item in the list control and then clicks the "Edit" button. This generates an "Edit Trade" dialog box with edit controls populated with the field contents of the record selected in the list control. Once the edits any data in the edit controls the "EditTrade" button is clicked. This updates the record in the database just fine.

The problem I'm having is passing the address of the list control in my "Find Trade" dialog box to a function, UpdateItem() in my Recordset class. It's he passing of the address that's presenting the problem.


This is the problem I'm having. I need to access a list control, m_lcTradeList in CFindTradeDialog from a function UpdateList() in CTransactionSet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top