Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

c# to vb.net conversion

Posted on 2012-03-27
3
Medium Priority
?
414 Views
Last Modified: 2012-04-01
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
Comment
Question by:Big Monty
[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 7

Expert Comment

by:Lalit Chandra
ID: 37772622
just add  Namespace

System.Collections.Generic
Microsoft.AnalysisServices
0
 
LVL 34

Accepted Solution

by:
Big Monty earned 0 total points
ID: 37772664
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
 
LVL 34

Author Closing Comment

by:Big Monty
ID: 37792675
found the solution on my own
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

650 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