Solved

Business Objects and lists

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 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