473,320 Members | 1,580 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.

Local Unused Variable

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
2 1353
Rabbit
12,516 Expert Mod 8TB
Please post the rest of the code for that function including the function declaration.
Jan 30 '13 #2
madankarmukta
308 256MB
Does the 'Error List' window point to the same.

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

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

Similar topics

134
by: James A. Donald | last post by:
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that...
3
by: Tom McL. | last post by:
Is there a way I identify and remove unused variable within vb2005 standard edition
1
by: Devendra | last post by:
PLZ Give me reply in deitals thanks
2
by: O.B. | last post by:
Is there a tag that I can use to designate that a parameter is not used and thus, not flag a compiler warning? For example: public struct MyClass { public int header; private int padding_; }
21
by: Sriram Rajagopalan | last post by:
Hi, Which of these two would be a better way of initializing the local variables? and why? 1) At the time of their declaration. Eg: void func()
1
by: kiluyar | last post by:
I have such a function: class T { public: T(){...//some operations} }; T& GetInst()
9
by: werasm | last post by:
Hi all, I'm looking for a nice clean (portable) way to get rid of unused variable warnings without fiddling with compiler settings (on a per case basis). I've come up with this: template...
2
Frinavale
by: Frinavale | last post by:
Hi! I am dynamically generating external .js JavaScript resources to be used with a Tab control I created (using VB.NET). Originally, the JavaScript was written directly into the <head> of the...
6
by: Matthew Wells | last post by:
Hello, I'm trying to make a shortcut that will open an mdb in the same folder as the shortcut - regardless of where the file/shortcut may be. In other words, I wan to be able to copy and paste...
2
by: Rick | last post by:
First of all, is there a group more specific to WPF? I have a WPF form and I want to bind to a local member variable from the xaml. the code behind is like this: Partial Public Class...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.