Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

c# to vb.net conversion

Hi All,

I'm trying to convert some c# code over to vb.net and am having trouble getting the following line converted over:

DataSource mainDataSource

Open in new window


its context is being used as a function parameter. what i tried was:

ByVal mainDataSource as DataSource

Open in new window


but its still has the blue squiggly line under it saying its invalid. I'm guessing I need to import the proper reference, I'm just not sure what it would be.

I'm also having trouble with this function parameter as well:

List<Dictionary<string, string>> repeatingData

Open in new window


This is all being done in the code behind for an InfoPath 2010 form.

Thanks in Advance!
0
Big Monty
Asked:
Big Monty
  • 2
1 Solution
 
Lalit ChandraCommented:
just add  Namespace

System.Collections.Generic
Microsoft.AnalysisServices
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Author Commented:
i found what I needed, it was:

Imports Microsoft.Office.InfoPath.DataSource

and for the second part of my question, I needed

ByVal repeatingData As List(Of Dictionary(Of String, String))
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Author Commented:
found the solution on my own
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now