By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,343 Members | 925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,343 IT Pros & Developers. It's quick & easy.

Local Unused Variable

P: 6
Hello,

In my application I have the following code. I get a error saying Unused Local Variable. I do not know why I am getting that error. The words that are underlined in my application are "TotalCatagory". I have defined the variable and below I have used it, so why the message? Can anyone help?

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim TotalCatagory As String
  3.  
  4.  
  5.  
  6. TotalCatagory = CatagoryArray(1) & CatagoryArray(2) & CatagoryArray(3) _
  7.         & CatagoryArray(4) & CatagoryArray(5) & CatagoryArray(6) & CatagoryArray(7) _
  8.         & CatagoryArray(8) & CatagoryArray(9) & CatagoryArray(10) & CatagoryArray(11) _
  9.         & CatagoryArray(12) & CatagoryArray(13) & CatagoryArray(14) & CatagoryArray(15) _
  10.         & CatagoryArray(16) & CatagoryArray(17) & CatagoryArray(18) & CatagoryArray(19) _
  11.         & CatagoryArray(20) & CatagoryArray(21) & CatagoryArray(22) & CatagoryArray(23) _
  12.         & CatagoryArray(24) & CatagoryArray(25) & CatagoryArray(26) & CatagoryArray(27) _
  13.         & CatagoryArray(28) & CatagoryArray(29) & CatagoryArray(30)
  14.  
  15.  
Jan 30 '13 #1
Share this Question
Share on Google+
2 Replies


Rabbit
Expert Mod 10K+
P: 12,382
Please post the rest of the code for that function including the function declaration.
Jan 30 '13 #2

100+
P: 293
Does the 'Error List' window point to the same.

Please provide more code coverage.
Feb 2 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.