Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Why I can't I do the following and get it working?

Dim intNumbRank As Integer = CInt(txtRank.Text())

 

Dim aryRank(intNumbRank) As Integer

I want to declare the Array as global for the Class or Form so I can use the array any where on the form. But I always get an blue underline under the variable intNumbRank inside the parenthesis. Please help me correct my code.

 

Many thanks in advance!

 

Chong

Posted
If you hold your mouse over the blue line it tells you what the problem is. It tells you that it requires a constant value within the parenthesis
My website

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