I have an array of people stored in a custom structure array... how can i copy this array to a temp array so that the temp array has all the same values as the original custom array?
I am creating a maths programs that draws graphs for the user. so far i have placed 22 values into an array and now i need to import them to excel, draw the graph and import the graph back into the program to display them.[code]...
I am using Visual Basic express edition 2008.I am trying to know if a value in a single dimensional array is repeated in the array. If yes, then multiply one of them by 100. For example:
Per this UserControl that can be added to a blank form, I would like to use the HorizUnits array below to map custom grid x coordinate from a mouse x position.For a given input value 13, what syntax would I use to obtain a value of 2 where 13 lies between Value 10 and 16 for which 2 (Name) would be the custom grid's displayed coordinate position?
then, in a 1D array I store the player's numbers, simply as
0 23 1 16 2 19
[code]....
I want it to take each number from the player's number array individually and compare them to each row individually in the lotto results array i.e. the first six cells in each row in the results array will be compared with each user number to find any matches, if a value matches then a count is incremented. if the count is greater than 2 but i'm getting no where with it :( i've been trying to use the For To loops but keep getting index out of range, or else nothing is happening at all!
I am writing a pizza order program for class and have gotten everything put together, even got my array setup and displaying but when i go to calculate it will not calculate the values coming from the array in any of the calculations.
[highlight="vb"]Option Strict On Public Class Form1 'declare structure and module-level variables Structure PizzaSale Dim SizaString As String Dim StyleString As Stri]
As per this illustration, I'm trying to increase the size of an existing array from 111 to 114 to be consistent with existing code. I need topreserve the existing values and add 3 new items to the end of the existing array of booleans,
Row3 ;W910 RF350022 ;Increase backlight by 100% ;(c) spring ;(p) spaceman +1000000 F5 000000 5555 44 555555 904938291 8676859 00
Row4 (Duplicate of Row3) ;W910 RF350022 ;Increase backlight by 100% ;(c) spring ;(p) spaceman +1000000 F5 000000 5555 44 555555 904938291 8676859 00
if label1 = RF350022 label2 = Increase label3 = spring label4 = 100%
only if it contains all of these words it should return the first instance (row3) then end or null the rest (row4).how can i get row 3 to show in message box now it has been found?
I feel quite silly asking this, but I couldn't find a definite answer anywhere. in vb.net, how are the array elements defined (if they are defined) for, for example:
Dim myarray(5) as int
does, at this point in time, myarray(3) for example have a defined value? If so, what is it?
I am getting some values in arrayIDs if some particular condtion match i am assinging values to array.Here i am getting problem when this condition not match i am getting values zero in all array indexes,here how to check if array contains zero values in array indexs
Dim selects As ListView.SelectedIndexCollection selects =[code].....
I'm having trouble assigning values to an array and am getting the error, "Value of type MemberFocal.Member cannot be converted to System.Array" - MemberFocal.Member is part of a custom class and I am attempting to create an array of these objects. Here is the code:
I have split a string into a char array, now i need to copy the char array to an int array with the ASCII values of each char.Donīt know how to do it without looping each value.
This is my code:
origen = RichTextBox1.Text.ToString Dim valor As Char() = origen.ToCharArray Dim numeros As Integer() = (How can i convert "valor" to an int array?????)
I have a text box that a user can enter integer values. When the user clicks the button, I want the value to be stored in an array. It works for the first value, but when the user enters the second value and clicks the button, the first value then becomes the index number of the element that stores the value, which is bigger than the array. I don't understand why the array index isn't incrementing by 1, and why/how the user entered value is assigned to "number".
What is the correct way to get values from an array? In the following code i gets set to the first value in the array instead of the index value. When it is used as an index then it returns the wrong value.Dim i As Integer = 0
Dim iColorTest As Integer For Each i In ForeColor iColorTest = ForeColor(i) + 128 If iColorTest > 255 Then iColorTest = 255 End If ForeColor(i) = iColorTest Next
i have 18 text boxes with a number in each. i would like to find the 4 highest amounts within theses text boxes. I was thinking i should just load the values into an array and then maybe sort the array high to low and then just grab the first 4 entries in the array after it is sorted.
I am trying to run an event which will search through the different files in a given directory. The goal is to have it search for all files that begin with 'SP_', which are .sql files containing Stored Procedures. I would then like to add the full text of these Procedures to an array to be used later. This is causing an error when run, which I believe is because 'FullProcedureArray()', the string array I am trying to load does not have defined boundaries. When I declare it as 'FullProcedureArray(7)', or with some other value, it appears to run fine. But I don't want to have to hard-code a boundary for 'FullProcedureArray'; I would rather let it be defined by whatever the number of files in the folder is.
My question: Is there a way to declare 'FullProcedureArray' without having to give it an absolute value? I may just be missing something painfully obvious, but I haven't worked with this type of array much in the past.
Dim AppDataLocation As String = "C:FilesTestFiles" Dim ProcedureArray As String() Dim ProcedureText As String
I have a text file which I open and then read in 1 line at a time and split up. I then takes each component part from the split string and assign it into a variable as I go.
I then want to specific varaibles and put them into an array and build the array.
Can I read in each element and assign it directly into an array or is this was best.
also
I seem to be getting an error when I try and directly add items into an array
' myCarrier(98).EZY_Both = myCarrier(98).EZY_Both + 1 ' Structure Carriers Public BA As Long Public BA_Lev3 As Long
I want to cause an array to be shrunk when one or more of its values is 0.
For example, take an array of length 5 with values 1,2,3,4 and 5. Is it possible to delete one of the values, say 3, and then move everything after it up so the array is now length 4 with the values 1,2,4 and 5?
I wounder if there is a way to get the values from array's dimensions, without knowing how many dimensions the array has.I know how to do if I know the array's dimensions, but not a clue if I don't know the array's dimensions.