Link to home
Start Free TrialLog in
Avatar of onebite2
onebite2

asked on

Business Objects and lists

I have a list of values for a particular table as collection .Now I need to clean the value in that virtual column 'CardNumber' which is declared in the Business object .
How can I iterate through the Business object using the values in the list and clean thevalue in particular column??

Below is the sample code of list and Business object..I appreciate if any one can give me syntax.
 
'Read only list -
        Dim _contractlist As BusinessLogic.Lists.ServiceContractsSearch = BusinessLogic.Lists. ContractsSearch.GetList(Me.DBConnectionString, duedateserver)

            'Iterate through each row in the list and   cleaning the column in the Business object ,this will save to the database.
        Dim Contract As BusinessLogic.Contract

Open in new window

Avatar of kaufmed
kaufmed
Flag of United States of America image

It would be helpful to know the implementation details of BusinessLogic.Lists.ServiceContractsSearch. Does it inherit one of the built-in collections? Does it have a member which is IEnumerable?

For each contact in _contractlist 
contact.CardNumber = nothing
Next

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of PagodNaUtak
PagodNaUtak
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial