Solved

Business Objects and lists

Posted on 2011-03-03
3
344 Views
Last Modified: 2012-05-11
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

0
Comment
Question by:onebite2
  • 2
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 35031661
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?
0
 
LVL 8

Expert Comment

by:PagodNaUtak
ID: 35033319

For each contact in _contractlist 
contact.CardNumber = nothing
Next

Open in new window

0
 
LVL 8

Accepted Solution

by:
PagodNaUtak earned 500 total points
ID: 35033320
Try the below code...
For each contact in _contractlist   
contact.CardNumber = nothing  
Next

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question