Help for translating from C#

  • Thread starter Thread starter Carlo, MCP
  • Start date Start date
C

Carlo, MCP

Hello,
please, help me to translate these four lines of C# code in VB:


bool topLeft, topRight, bottomLeft, bottomRight;
int topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius;
topLeft = topRight = bottomLeft = bottomRight = true;
topLeftRadius = topRightRadius = bottomLeftRadius = bottomRightRadius =
workRadius;


Thank you a lot!

C.
 
Hello,
please, help me to translate these four lines of C# code in VB:


bool topLeft, topRight, bottomLeft, bottomRight;
int topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius;
topLeft = topRight = bottomLeft = bottomRight = true;
topLeftRadius = topRightRadius = bottomLeftRadius = bottomRightRadius =
workRadius;


Thank you a lot!

C.
Dim topLeft, topRight, bottomLeft, bottomRight as boolean
dim topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius
as integer
topLeft = topRight = bottomLeft = bottomRight = true
topLeftRadius = topRightRadius = bottomLeftRadius = bottomRightRadius =
workRadius

(... i think..)

__
Tor Inge
 
Carlo said:
please, help me to translate these four lines of C# code in VB:


bool topLeft, topRight, bottomLeft, bottomRight;

\\\
Dim TopLeft, TopRight, BottomLeft, BottomRight As Boolean
///
int topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius;

\\\
Dim TopLeftRadius, TopRightRadius, BottomLeftRadius, BottomRightRadius As
Integer
///
topLeft = topRight = bottomLeft = bottomRight = true;

\\\
TopLeft = True
TopRight = True
BottomLeft = True
BottomRight = True
///
topLeftRadius = topRightRadius = bottomLeftRadius = bottomRightRadius =
workRadius;

\\\
TopLeftRadius = WorkRadius
TopRightRadius = WorkRadius
BottomLeftRadius = WorkRadius
BottomRightRadius = WorkRadius
///

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>
 
Thank you very much!

c.




Herfried K. Wagner said:
\\\
Dim TopLeft, TopRight, BottomLeft, BottomRight As Boolean
///


\\\
Dim TopLeftRadius, TopRightRadius, BottomLeftRadius, BottomRightRadius As
Integer
///


\\\
TopLeft = True
TopRight = True
BottomLeft = True
BottomRight = True
///


\\\
TopLeftRadius = WorkRadius
TopRightRadius = WorkRadius
BottomLeftRadius = WorkRadius
BottomRightRadius = WorkRadius
///

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>
 
Thank you, but 3rd and 4th lines seens to be the same as C#...
Sorry, did not test the code before posting...
This should work:

Dim topLeft, topRight, bottomLeft, bottomRight As Boolean
Dim topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius
As Integer
topLeft = True
topRight = True
bottomLeft = True
bottomRight = True
topLeftRadius = workradius
topRightRadius = workradius
bottomLeftRadius = workradius
bottomRightRadius = workradius
 
Yes, this works!
Thank you very much
c.

Tor Inge Schulstad said:
Sorry, did not test the code before posting...
This should work:

Dim topLeft, topRight, bottomLeft, bottomRight As Boolean
Dim topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius As
Integer
topLeft = True
topRight = True
bottomLeft = True
bottomRight = True
topLeftRadius = workradius
topRightRadius = workradius
bottomLeftRadius = workradius
bottomRightRadius = workradius
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top