VS 2010 Remove Null / Unused Arrays From A Program?
Sep 19, 2011How to remove unused arrays from a program? The array is has an upper bound of 19. If the array isn't full, I get a null array error.
View 9 RepliesHow to remove unused arrays from a program? The array is has an upper bound of 19. If the array isn't full, I get a null array error.
View 9 Replieshow to write a null bytes onto unused hard disk spaces? I understand that files deleted are still existed on hard disk, I am thinking of may be if I write the null bytes to every single unused bytes so that the unused hard disk space would be become all null bytes, and unused space would no longer contain of those deleted files.
View 9 RepliesI need to remove all the unused code in my companies project. There is about 1.5 million lines of code, therefore I need a tool to help track it all down. I was wondering if anyone could recommend a tool. I found Project Analyzer but I need good justification on why we need to use this software because the verndor is foreign based.
View 2 RepliesI have created some check boxes and buttons, and changed the names, but it seems like the system.properties saved both names now I would like to rename the button back to the original name but the name is being stored for some reason, and I cant access the original name, how do I clean this up?
View 6 RepliesWe are presently developing an application, let's call it APP1, which uses a SQL Database which have about 800 stored procedures, 600 tables, etc. APP1 was originally created in order to replace another application, APP0, from which we do not have source code but only SQL tables, Stored Procedures, views, etc. Previous programers of APP1 used some DB objects from this same database and added some other objects specific to APP1 because it becomes bigger than APP0. And we do not need APP0 anymore as APP1 does all what we want, and more.
So, now, we are thinking about a way to find out which objects are used by APP1 in order to remove objects which are ONLY used by APP0.What is the best approach to discover all objects used by APP1 without having to open every single class and form?
Once we will have a complete list of these objects, it will be easy to use a program we bought which detects all dependencies for all SQL Objects specified directly from SQL and remove objects which do not return from any dependencies. Any ideas of how I could get this list without having to go through all our program that have many, many, many classes and forms?
Note : I know, in a perfect world, all calls to PSs and tables should be in a DAL but in the case of the application we're presently working on ... this is not our case! Yippy! (sarcastic yippy) ;)
Note 2 : This application is not using any ORM. So all queries are directly using SqlCommand. So any call to any DB objects are in string format.
Now I see that VB tells me that label arrays are no longer supported But I also see that VB2010 is providing the relevant logic to update each of the label array fields I was until today using VB2008, because after running this application it crashes with a report of stack overflow, I assume it is related to the label arrays, but have no idea. So I have upgraded to VB2010.
In VB2010, I note that the immediate window is reporting A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll Now I have used label arrays for showing columns of like data, generated by a for loop. What should I be using it its place, maybe a grid..
This should be simple but apparently it's not. I have a text file, 694 bytes. At byte 500 there's a null in the file. I've tried reading it as text and binary and I end up with a string, 694 bytes long. But anyting I do with this string fails because it appears to stop at character 500. I can do a ? asc(mystring.substring(549,1)) and I get 9 (tab). Print character 550 and I get 0. Print character 551 and I get 32 (space). How do I get rid of this null?
View 5 Replieshow to delete row in a CSV file where there is a null value in a partcular column? I am using VB. There are three columns I am using Post Date, Account Number, and Credit Amount. I want to delete all rows with null values in the Account Number column. I am very new to VB, took one class. I am using the Microsoft.VisualBasic.FileIO.TextFieldParser?
View 1 Repliesi have tese two arrays
if i find filter_ids in stroutids i want to remove those from stroutids array
Dim strOutIDs() As String = Split(OutIDs, ",")
Dim Filter_Ids() As String = Split(Me.ucIo_Entry.Filterd_RowIds, ",")
[Code]...
I have a XML xElement like[code]...
In order to get rid of Trick nodes where value is null, I wrote:
myXmlElement.<Play>.<Trick>.Where(Function(m) m.<Trick>.Value = "").Remove()
I have a function that returns a byte(), the only problem is that the array most times is to long and has 4 or 5 excess null bytes. I want to remove them and tried everything, but I cant seem to find anything that works.
View 3 Repliesbytes ( 00 00 00 ) I'm trying to remove from a specific set of locations within a byte stream. The following code is what I'm using. I tried using the Trim function as listed in the code at the bottom but that had no effect. I'm extracting from a fixed byte range and there are null values after the end of valid ascii characters. Dim temp() As Byte = GetByteArray(FrameData, 3, 32)
Private Function GetByteArray(ByVal MyArray As System.Array, ByVal Start As Integer, ByVal Length As Integer) As Byte()
[Code]...
Is it possible to have an Arraylist of arrays in vb.net?
View 2 RepliesI am trying to write a program using arrays. The issue I am having is I want to use an array where not only can I use a string value but a numerical value as well.please keep tha answers simpl as I am becoming very frustrated and starting to think progamming is a waste of time
View 2 RepliesI have two arrays
a={a,b,c,d}
b={1,2,3,4}
now I want to create a 3rd array which should at least contains one numeric number and rest of alphabets, this code will generate unique usernames so it should not repeat the pattern of selection which is present in main array[code]...
I have to make this program to keep track of product description, ID, price, and quantity. I am manually coding some and the user can input products as well. I want to display the product and it's ID in a listbox and put price and quantity in seperate labels. [code] My question is how do i keep the array index numbers sorted so when i click an item in the listbox it will show the price and quantity in the labels for them?
View 1 RepliesI have created control arrays in run time with following [code]...
But I don't know how I can have access to events now (especially textchanged)
For example I want when I write number in txtfrom (i+1) write it automatically in txtTo(i)
I can't get my variables in the program below into thier arrays.
Dim lblnumbers(6) As Label, txtweight(6) As TextBox
Dim txtnumbers(6) As TextBox, sngnumbers(6) As Single
Dim grade() As String, g As Integer = 1, weight() As String
[CODE]...
I have a table named tbluser with fields code and name. I want to check the lowest unused number in code. For example table below:
code name
60688 jane
60689 dina
[Code]....
i have also one textboxt what is the first, second and third number to search
ex.
if
text1.text=6
therefore first number is 6 second and third is 06 and the result should be
60601 since in the code the lowest unused code is 60601.
deleted the unused image file
View 4 RepliesIn my project there are lot of variables, and some of them are not used at all.I want to clean up the code by removing these unused variables. These variables are not shown as unused when i build the application. The problem is with the global variables, and not with the local varible for a function .Is there a method to find these unused variables?
View 8 RepliesI'm working on my first real vb.net project, after years of using VB6. I'm using Visual Studio 2008. While I've been learning, I've added lots of DataSets to my project and then realised I'd got something wrong, so I've added, and begun to use, a new one. Trouble is, I'm not sure now which ones are used and which aren't.
How can I identify which DataSets aren't being used, and then what is the best way to remove them cleanly? Or should I stop worrying about tidying up and get on with the development work? ;)
I have some arrays that I don't know the exact number of indexes it will have, but I know the max it will have which is 1024, but let's say only 24 of those are actually used, is it possible to trim off the excess 1000 indexs that are worthless for efficiency purpose (if that even matters)?
View 7 RepliesSub WriteEOFData(ByRef FilePath As String, ByRef EOFData As String)
Dim sFileBuf As String
Dim RoPepfMiyYgyrTfLY7YxdpSoSOycKgR06b1oCptGcO As String
Dim lFF As Integer
Try
[code]....
I am using a DLL written in C#, and one of its API's wants to be used as such, (this is the sample useage they give, but it is also written in C#)[code]...
View 18 RepliesI am getting 6 unused local variable error messages. If I comment out the variable, I get en error because it really is in use. I tried re-building project.
error
Warning 2 Unused local variable: 'sqlCustomerInsertTicketConn'. C:UsersJeffDocumentsVisual Studio 2008ProjectsJeffComputersPOS1JeffComputersPOS1Module1.vb 1741 17 JeffComputersPOS1
What's the deal with those 23 unused bits in the Decimal data type? You know, there's the 96-bit integer portion, then 16 unused bits, then 8 bits for the exponent (which can only be 0 through 28, so doesn't even use all 8 bits), then 7 more unused bits, then the sign bit [URL]...
View 1 RepliesI am new to using VB2010 (and coding in general). Also brand new to these forums . Okay so I am making a program that: allows the user enter the number of customers served for each of 12 months into an array. The application should calculate and display the following statistics: total number of customers for the year, the average monthly number of customers, and the months with the highest and lowest numbers of customers. Use inputBox to get user input. Do not accept non-numeric or negative numbers.
The problem that I am having is that I do not know how to display which was the best and worst month. I imagine I need something that targets the highest/lowest number and finds the text in the corresponding index but I'm not sure how to do this.
I keep getting a null reference exception w/this program, and its on the line that declares the array. I've looked it over and over and I just don't see why... Can you let me know if you see anything obvious? I'm also getting an "index out of range" exception, but it looks right to me...I declared everything with an 11 for 12 months, 0 to 11 for the intcount.
[Code]...
Everything I know about .Net programming tells me that the behavior I see here is completely impossible. Simple code:
Structure WKSTA_USER_INFO_1
Dim wkui1_username As Integer
Dim wkui1_logon_domain As Integer
[Code]....
When I put a break point in here, I see that after RtlMoveMemory, my wk1 contains a pointer to a username, and all the others are 0. This is consistant. Now, if I change Dim test As String = "" to Dim login As String = "" and run it again, wk1 contains pointers to both username and logon_domain.
If I change it to Dim login As String, it contains a pointer to only the username. Depending on what I change that (completely unused) variable name to, I get a different result.
I have always been under the impression that it cannot possibly matter what you choose to name your variable. And that declaring a variable, and then never using it, cannot possible be different from not having a variable there at all.
I've tried this on 2 computers, with consistant results (one on .Net 3.5 and one on 4.0). When I tried converting it to C#, however, I was not able to reproduce it.
I am aware, by the way, that I can just use System.Environment to get what I need about the current user information; this was old VB6 code that was automatically upgraded (and I've edited it a little to make it more trivial).