----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: ReluctantSexyGuy Message 1 in Discussion Hi, I am trying to assign a value to an object's property through Late Binding. The problem is that I can assign hardcoded values as follows.But i cant assign the property name through the use of a variable. qryIn is an object on CRM OnDemand Web Service.I have used k as object for late binding. How do i use g.name (name of the column) as an assignment to the AccountID for dynamically changing property at each iteration in the loop. Dim k As Object k = qryIn For Each g As DataGridViewColumn In dgvData.Columns 'Dim j1 As String = g.Name -- tried this...but gives error......in place of Account ID Below k.listofaccount(0).AccountID = "" --In place of accountID, i want to have g.name(dynamically at each iteration) Next -------------------- Please help. Regards, Sumeet. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[email protected]
