Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 HELP

Author  Topic 

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-09-29 : 07:15:09
Please convert this to C#

for i as integer = 0 to mydataset.tables(0).rows.count-1
.WebChartItems.Add(New WebChartItem(mydataset.tables(0).rows(i).item("MyLabel"), mydataset.tables(0).rows(i).item("MyValue"), False))

next

If it is that easy, everybody will be doing it

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-09-29 : 07:19:41
You want us to do your job for you, for free?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-09-29 : 07:23:26
Lol hmm Pesooooo!!! you make me laugh, come on u know you want to do it

If it is that easy, everybody will be doing it
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-09-29 : 07:26:36
Try me.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-09-29 : 07:27:48
Google is your friend.
http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-49,GGLG:en&q=convert+vb+to+c%23


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-09-29 : 07:31:20
I hategoogle mate

If it is that easy, everybody will be doing it
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-09-29 : 07:37:23
we can tell.



Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-09-29 : 07:48:06
Mladen, don't do to that to me!
Now I will be smiling all weekend


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-09-29 : 07:49:40
my sincere apologies



Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2006-09-29 : 07:55:51
well this link is on my favourites in ie - so I thought I'd volunteer to do your job for you for free today - seeing as it is friday:
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx


Duane.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-09-29 : 08:40:13
quote:
Originally posted by OBINNA_EKE

I hategoogle mate

If it is that easy, everybody will be doing it


Why?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-09-29 : 09:03:06
I hate hyperlinks as well LOL

If it is that easy, everybody will be doing it
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-09-29 : 09:07:18
quote:
Originally posted by OBINNA_EKE

Please convert this to C#

for i as integer = 0 to mydataset.tables(0).rows.count-1
.WebChartItems.Add(New WebChartItem(mydataset.tables(0).rows(i).item("MyLabel"), mydataset.tables(0).rows(i).item("MyValue"), False))

next

If it is that easy, everybody will be doing it



How do you ever expect to learn anything if you just ask people to do things for you?

If you only know C#, you should have no trouble converting this since, in theory, you know C# and this is pretty basic code -- even not knowing VB.NET, this should be easy to figure out. If not, ask a specific question and we can help.

If you only know VB.NET, then why would you convert a snippet of code from a language you DO know to a language that you don't understand? that makes no sense.

- Jeff
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-09-29 : 09:15:33
quote:
Originally posted by OBINNA_EKE

I hate hyperlinks as well LOL

If it is that easy, everybody will be doing it


Again, why?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-09-29 : 09:28:07
quote:
Originally posted by madhivanan

quote:
Originally posted by OBINNA_EKE

I hate hyperlinks as well LOL

If it is that easy, everybody will be doing it


Again, why?

Madhivanan

Failing to plan is Planning to fail



Basically he just hates to learn, that's all I can deduce !

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-09-29 : 09:44:37
Ok Dudes, this is getting serious I was only joking thanks for the criticism, since some people do not have a sense of humour
Thanks all.

If it is that easy, everybody will be doing it
Go to Top of Page

trouble2
Constraint Violating Yak Guru

267 Posts

Posted - 2006-09-29 : 10:12:50
http://www.carlosag.net/Tools/CodeTranslator/Default.aspx
Go to Top of Page
   

- Advertisement -