Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Could some please convert this to VB.NET?
The online converters won't do it.


C#
for (int i = 0; i " Environment.NewLine : "")
 ""
);
Posted
Updated 21-Dec-11 7:23am
v2
Comments
Richard MacCutchan 21-Dec-11 13:39pm    
It's not code, it's gibberish (which may be a new language).

This line cannot be converted into VB.NET as it is no valid expression in any of those language I know - the syntax for the for-loop is wrong in C, C++, C#, Delphi, etc.
Or I am not familiar with that language...
 
Share this answer
 
v2
Comments
thatraja 21-Dec-11 13:27pm    
You right, the expression is invalid. 5!
Thomas Maule 21-Dec-11 13:32pm    
In the expression what does ' " ' between i and environment mean? or the ':'
Dave Kreskowiak 21-Dec-11 16:27pm    
There's no way to tell since the entire expression makes no sense at all. The code you posted does not conform to any language we know of. It's impossible to tell you what that code does.
Henning Dieterichs 21-Dec-11 13:44pm    
I dont know, you have written that code...
Generally " means string, : means conditional expression in connection to ? - which both are nonsense in a for-loop...
Additionally the "" in the second line makes no sense as it is no valid expression to (it is a single string-literal).
And the ); in the third line is nonsense, too. Either you loop over one line or you enclose the code to loop over with { and }.
What do you want to do with that piece of code?
Thomas Maule 21-Dec-11 15:36pm    
I got the code from the web - it is part of a routine that converts rtf to html. I know nothing of C syntax so when I get the error in the online converter I have no idea if the code is meaningless or not. It actually errors on the first line of code and not this one but this blog wouldn't let me paste it all in.

Thanks for the help and I hope this post is as funny as the last for LanFanNinja - I'll do better to know the answers before I ask next time.
When I converted it, I got this:

Syntax Error

Now what?
 
Share this answer
 
Comments
LanFanNinja 21-Dec-11 14:15pm    
LOL!
+5 for making me laugh.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900