Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I need to chane the size of a one dimensional System.Array

Redim does not work?

 

The code I have to send the itemids to requires a type of system.array

 

itemids = System.Array.CreateInstance(GetType(String), lengths, lbounds)

Posted

The reference code I am looking at does as so (I am looking at sample code for a OPC class). I can't seem to find a reference to this syntax????

 

 

lengths(0) = 3

lbounds(0) = 1

shs = System.Array.CreateInstance(GetType(Int32), lengths, lbounds)

 

What I did to replace this was:

 

dim shs(0) as integer

 

Then I redim preserve as I need to grow. Doesn't seem to work the right way though :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...