473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Help for translating from 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.

Nov 21 '05 #1
6 1209
Carlo, MCP wrote:
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
Nov 21 '05 #2
Thank you, but 3rd and 4th lines seens to be the same as C#...

"Tor Inge Schulstad" <to****************@gmail.com> ha scritto nel messaggio
news:U5********************@telenor.com...
Carlo, MCP wrote:
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

Nov 21 '05 #3
"Carlo, MCP" <ca******@gmail.com> schrieb:
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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Thank you very much!

c.


"Herfried K. Wagner [MVP]" <hi***************@gmx.at> ha scritto nel
messaggio news:ON**************@TK2MSFTNGP15.phx.gbl...
"Carlo, MCP" <ca******@gmail.com> schrieb:
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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Carlo, MCP wrote:
Thank you, but 3rd and 4th lines seens to be the same as C#...

"Tor Inge Schulstad" <to****************@gmail.com> ha scritto nel messaggio
news:U5********************@telenor.com...
Carlo, MCP wrote:
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


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
Nov 21 '05 #6
Yes, this works!
Thank you very much
c.

"Tor Inge Schulstad" <to****************@gmail.com> ha scritto nel messaggio
news:e4********************@telenor.com...
Carlo, MCP wrote:
Thank you, but 3rd and 4th lines seens to be the same as C#...

"Tor Inge Schulstad" <to****************@gmail.com> ha scritto nel
messaggio news:U5********************@telenor.com...
Carlo, MCP wrote:

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


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

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Davis Marques | last post by:
hi; I'm translating some PHP scripts to Python and have hit a roadblock with a for statement. If someone could explain to me how one should translate the multiple increment, evaluations, etc....
2
by: Henrik S. Hansen | last post by:
How do you best go about translating characters like '\\n' to '\n'? This is for a configuration file parser, where the "backslash convention" is supported. The naive approach --...
0
by: Anuj Mathur | last post by:
Hello All We are making an application for translating the literals (HTML text and labels) of an existing ASP website from English to another language, say Swedish. Now, for this we are...
1
by: Michael Friendly | last post by:
I have a LaTeX document describing a long list of items that I want to translate to XML to treat these as a database. I've written a perl script to do the basic translation, and a basic DTD file,...
23
by: gregf | last post by:
I have a paragraph of text pasted into a word document, it's in Polish, complete with polish characters. They show up just fine in word, but the program I use for web page programming, HomeSite,...
1
by: J | last post by:
Hi all, I just finished a asp.net project, which is based on English language, and all of sudden, client need different language also, say German, Chinese, etc. So, what is the best way, or I...
9
by: Hugo Amselschlag | last post by:
Hi there, I've implemented a local system hook to suppress certain windows beeing displayed by the axWebbrowser control. Now I need some more information before I can decide, whether to suppress...
6
by: Jumping Matt Flash | last post by:
The code i'm writing is using VB .NET and is for a web service returning a dataset, which is in turn to be used by an ASP .NET application displaying a datagrid. I'm currently populating a...
2
by: kimi | last post by:
Voip Learning and Translating Tutorial Voice Over IP is a new communication means that let you telephone with Internet at almost null cost. How this is possible, what systems are used, what is the...
15
by: pinkfog | last post by:
hi,all I write a snippet(in VC6.0 PLATFORM) to show the ASCII character ranging from 0-255. snippet: #include "stdafx.h" #include "stdio.h" #include "conio.h" int main(int argc, char* argv) {...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.