?
Solved

Business Objects and lists

Posted on 2011-03-03
3
Medium Priority
?
346 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 total points
ID: 35033320
Try the below code...
For each contact in _contractlist   
contact.CardNumber = nothing  
Next

Open in new window

0

Featured Post

Technology Partners: 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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

770 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