Solved

c# to vb.net conversion

Posted on 2012-03-27
3
405 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 33

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 33

Author Closing Comment

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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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