vb translation from c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Bruce Browning said:
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 Bill. I appreciate your help.

Bill McCarthy said:
Bruce Browning said:
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())


 
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_csharp_comparison.html

Thanks,

Seth Rowe
 
Back
Top