C# to VB help

  • Thread starter Thread starter Mirnes
  • Start date Start date
M

Mirnes

Hello,

Can someone provide me with VB code for following C# code:

Code 1:
{
IndexerSchedule.Install(20);
}


Code 2:
{
DataTable dtResult = SiteSearch.Search(txtWord.Text);
DataView dvResult = new DataView(dtResult);
dvResult.Sort = "count DESC";
DataGrid1.Visible=true;
DataGrid1.DataSource=dvResult;
DataGrid1.DataBind();
}

Thanks in advance!
 
Hello,

Can someone provide me with VB code for following C# code:

Code 1:
{
IndexerSchedule.Install(20);
}

Code 2:
{
DataTable dtResult = SiteSearch.Search(txtWord.Text);
DataView dvResult = new DataView(dtResult);
dvResult.Sort = "count DESC";
DataGrid1.Visible=true;
DataGrid1.DataSource=dvResult;
DataGrid1.DataBind();
}

Thanks in advance!

IndexerSchedule.Install(20)

Dim dtResult As DataTable = SiteSearch.Search(txtWord.Text)
Dim dvResult As DataView = New DataView(dtResult)
dvResult.Sort = "count DESC"
DataGrid1.Visible=True
DataGrid1.DataSource=dvResult
DataGrid1.DataBind()
 
IndexerSchedule.Install(20)


Dim dtResult As DataTable = SiteSearch.Search(txtWord.Text)
Dim dvResult As New DataView(dtResult)
dvResult.Sort = "count DESC"
DataGrid1.Visible = True
DataGrid1.DataSource = dvResult
DataGrid1.DataBind()




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espanol : http://asp.net.do/foros/
======================================
 
Hi, Mimes.

In the future, you might want to consider running the code
you want translated through one of these converters :

http://www.eggheadcafe.com/articles/cstovbweb/converter.aspx

http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx

http://dotnetspider.com/codeconvert/

http://www.carlosag.net/Tools/CodeTranslator/default.aspx

You might get the translation even faster!

:-)



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Hi, Mimes.

In the future, you might want to consider running the code
you want translated through one of these converters : snip
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx
snip

You might get the translation even faster!

:-)

Unfortunately, those sites ( actually that app has a problem,)


Server Error in '/Utilities' Application.
--------------------------------------------------------------------------------

Input string was not in a correct format.



If anyone knows the admins, they should let them know..
 
re:
!> Input string was not in a correct format

You *do* need to input correct code in whatever language
you request be translated to the other language.

If your input is not correctly formatted, you get that message.

It's a variation of the "garbage in, garbage out" computing principle.
You *must* feed the translator correct code.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Back
Top