Solved

Business Objects and lists

Posted on 2011-03-03
3
340 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 74

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now