Solved

c# to vb.net conversion

Posted on 2012-03-27
3
369 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
  • 2
3 Comments
 
LVL 7

Expert Comment

by:Lalit Chandra
ID: 37772622
just add  Namespace

System.Collections.Generic
Microsoft.AnalysisServices
0
 
LVL 32

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 32

Author Closing Comment

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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now