PC Review


Reply
Thread Tools Rate Thread

C# to VB help

 
 
Mirnes
Guest
Posts: n/a
 
      25th May 2007
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!

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      25th May 2007
On May 25, 2:51 pm, Mirnes <leme...@yahoo.com> wrote:
> 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()

 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      25th May 2007
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/
======================================
"Mirnes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>



 
Reply With Quote
 
Mirnes
Guest
Posts: n/a
 
      25th May 2007
Thanks a lot for prompt response!

Mirnes

 
Reply With Quote
 
Kirk
Guest
Posts: n/a
 
      25th May 2007
On May 25, 9:24 am, Mirnes <leme...@yahoo.com> wrote:
> Thanks a lot for prompt response!
>
> Mirnes


You can get instant conversions to VB from here:

http://www.developerfusion.co.uk/Uti...sharptovb.aspx

Just FYI....

 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      25th May 2007
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/...converter.aspx

http://www.developerfusion.co.uk/uti...btocsharp.aspx
http://www.developerfusion.co.uk/uti...sharptovb.aspx

http://dotnetspider.com/codeconvert/

http://www.carlosag.net/Tools/CodeTr...r/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/
======================================
"Mirnes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks a lot for prompt response!
>
> Mirnes
>



 
Reply With Quote
 
Turkbear
Guest
Posts: n/a
 
      25th May 2007
On Fri, 25 May 2007 10:13:16 -0400, "Juan T. Llibre" <(E-Mail Removed)> wrote:

>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/uti...btocsharp.aspx
>http://www.developerfusion.co.uk/uti...sharptovb.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..





 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      25th May 2007
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/
======================================
"Turkbear" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> On Fri, 25 May 2007 10:13:16 -0400, "Juan T. Llibre" <(E-Mail Removed)> wrote:
>
>>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/uti...btocsharp.aspx
>>http://www.developerfusion.co.uk/uti...sharptovb.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..
>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:34 PM.