473,320 Members | 1,945 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,320 software developers and data experts.

vb translation from c#

I am usually able to move between c# and vb without difficulty. However, I
can't get this translation. Can someone show me how you would right the
following lines of code in vb?

object[] operationIds = new object[] { 1 };

object[] result = (object[])clientContext.AccessCheck("Auditstring",
new object[1], operationIds, null, null, null, null,
null);

thanks
Aug 7 '07 #1
3 1140

"Bruce Browning" <Bruce Br******@discussions.microsoft.comwrote in message
news:86**********************************@microsof t.com...
>I am usually able to move between c# and vb without difficulty. However, I
can't get this translation. Can someone show me how you would right the
following lines of code in vb?

object[] operationIds = new object[] { 1 };
Dim operationIds() as Object = New Object() { 1}

object[] result =
(object[])clientContext.AccessCheck("Auditstring",
new object[1], operationIds, null, null, null, null,
null);
Dim result() As Object = Ctype(clientContext.AccessCheck("Auditstring", new
object(1) {}, operationIds, nothing, nothing, nothing, nothing, nothing),
Object())
thanks
Aug 7 '07 #2
Thanks Bill. I appreciate your help.

"Bill McCarthy" wrote:
>
"Bruce Browning" <Bruce Br******@discussions.microsoft.comwrote in message
news:86**********************************@microsof t.com...
I am usually able to move between c# and vb without difficulty. However, I
can't get this translation. Can someone show me how you would right the
following lines of code in vb?

object[] operationIds = new object[] { 1 };

Dim operationIds() as Object = New Object() { 1}

object[] result =
(object[])clientContext.AccessCheck("Auditstring",
new object[1], operationIds, null, null, null, null,
null);

Dim result() As Object = Ctype(clientContext.AccessCheck("Auditstring", new
object(1) {}, operationIds, nothing, nothing, nothing, nothing, nothing),
Object())
thanks

Aug 7 '07 #3
On Aug 7, 11:58 am, Bruce Browning <Bruce
Brown...@discussions.microsoft.comwrote:
I am usually able to move between c# and vb without difficulty. However, I
can't get this translation. Can someone show me how you would right the
following lines of code in vb?

object[] operationIds = new object[] { 1 };

object[] result = (object[])clientContext.AccessCheck("Auditstring",
new object[1], operationIds, null, null, null, null,
null);

thanks
This site, created by a few former and current posters here, should
help you out.

http://www.harding.edu/fmccown/vbnet...omparison.html

Thanks,

Seth Rowe

Aug 7 '07 #4

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

Similar topics

0
by: Matt | last post by:
Short Description: The Translation Hub is not picking up the TNS names file. I'm using Oracle 9ids. It doesn't work for any users and it has never worked since it's been installed. Long...
40
by: Chiwa | last post by:
Hey, Expression: Math.floor(x * 100) / 100 x= 4.1 gives 4.09, why in gods name? While other values for x don't give a problem. Thx in advance
5
by: Haines Brown | last post by:
I suspect this is a FAQ, but as a guide to my further investigation, I wondered what the options are for providing readers of my web pages with the ability to translate the pages into their own...
7
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting...
7
by: Peter Eisentraut | last post by:
Greetings. The official PostgreSQL documentation has been translated to German and has been published as a book by verlag moderne industrie/mitp ("PostgreSQL: Das offizielle Handbuch", ISBN...
4
by: Chris Croughton | last post by:
Does a translation unit have to have at least one externally visible declaration or function definition to be valid? As I read the standard, it doesn't: it must have at least one declaration or...
2
by: James | last post by:
In oracle I can do the following: select CONVERT(COLUMNOFNAMES,'US7ASCII') from mytable -- It will take a name like Albrecht Dürer and change it into Albrecht Durer and is useful in where...
1
by: dilabox | last post by:
Hello, I have overloaded the global new, delete, new and delete operators inside a "static library". The library uses private memory allocation routines that must not be accessible from other...
4
by: Tomás Ó hÉilidhe | last post by:
I have a translation unit which defines a global object: BEGIN "yellow.c" int i = 7; END I want this object to be accessible from other translation units, so I give it external linkage....
0
by: Stef Mientki | last post by:
hello, I've build a translation tool, to translate all strings in a python source file. As a extra gadget I added translation through Babel Fish, using beautifulsoup. Although it works...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.