o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Traverse 2D array [resolved] -

Hi

I have a 2D array : imageTileArray and I would like to traverse it i.e. visit every entry in the array sequentially. I've had a go at doing it myself as follows but i get address violations:


for(i=0; i < sizeof(imageTileArray[i]); i++) {
for(j=0; j < sizeof(imageTileArray[i][j]); j++) {
//do something
}
}

Is this the correct way to do so or is there better/correct way.

thank You

wallace

 

Traverse 2D array [resolved] -
Hi I have a 2D array : imageTileArray and I would like to traverse it i.e. visit every entry in the array sequentially. I've had a go at doing it myself as follows but i get address violations: for(i=0; i < sizeof(imageTileArray[i]); i++) { for(j=0; j < sizeof(


How traverse the NAT with winsock -
I resolved, I thank you all


Returning Recursive values -
I know this might be a simple recursion question to some of you but I'm just a beginner to VB and to the whole programming world so please bear with me if my question seems a little bit dumb.... Lets say you have a search tree structure and you want to traverse the the tree to get a v


[2005] Traverse a TreeView -
Hi All, I would like to ask how to traverse a TreeView. Private Sub showTree (TreeView t) ‘display a treeView to the screen which structure is an unknown End Sub Mike


Need help in sql statement -
Hello everybody, I need help in writing sql statement to traverse data. For example if I have a table that contains family information where there is a PersonID and ParentID where parent is also a person, how can I traverse person, say if I need to find all the parents of a person


array help[resolved] -
ok this might be confusing to some but ill try to explain it the best that i can. i have an array, if something is found in the array that i don't want, is there a way for me to ignore it, but continue the array? if i put exit sub it totally halts the whole array. any ideas? t


Excel Column traversing -
I have 216 colums, and I need to get the sum of each column. Is there any way for me to traverse through each column? Here's the info I have, and what I'm trying to do: 1. my rows are a variable (ex:146) 2. I have 216 colums 3. I need to get the sum of 146 rows in each column


Traverse Listbox Items -
Hi all, I have a databound listbox and I want to traverse all the items in the listbox with a loop. For example, I want to print all the items of the listbox in Message Boxs one by one. Thanks.


Webbrowser control (Resolved) -
I want to traverse alll the Textboxes in a webpage displayed in a WebBrowser Control...Can anyone tell me how to do this?


How to traverse class properties for Nunit tests -
Hi I am working on a project in which I need to NUnit testing. To do that I need to write tests for each class. I am trying to automate that process. 1. How to know names of public properties of class in .Net dynamically? 2. I am also looking for property types to set some defaul


Quick Question Treeview -
Hi! Can anyone give me a function like this: vtAdd(strNode,strChild){ } This function should add the strChild as a child node of the strNode node. Im thinking I should traverse through the tree to check for strNode and if its there traverse through the children and place it at


array defintions [*RESOLVED*] -
Here's my problem... I need to DIM an array with unknown boundaries. For instance, lets say that I need an array that (1 to x). I can determine the value of x before I define the array. However, I can't use "x" as a paramater in the definition. I tried to DIM array() and t


Formatting Dates *Resolved* -
I use the following code to transfer a text file into an Excel File - objExcel.Workbooks.OpenText FileName:=strFilename, Origin:=xlWindows, StartRow:=1, _ DataType:=xlDelimited, TextQualifier:=xlTextQualifierDoubleQuote, ConsecutiveDelimiter:=False, _ Tab


Removing Directories **Resolved** -
Do you know how to delete an entire directory and it's contents without having to traverse through all folders and subfolders killing each file and then removing each folder of the way out? Thanks in advance Flustor


Traverse shapes on drawing canvas -
Hi I have a drawing canvas in word which is a collection of shapes. For instance if I click on one of the shapes in the drawing canvas I can format it. How do you traverse all the shapes in the drawing canvas object?


[resolved] Randomizing a 2d array -
I have a 2d array of booleans that I want to randomize. How do I do it? When the array is created the 99 first elements are true, the rest of the 16x30 array is false. I want to shuffle it around so that I have "true" elements spread out over the entire array.


Msflexgrid Control Selection -
Dear all, Hope you are all in fine tune. I have got a problem to be resolved. I have got a MSflexgrid control on a form. It consists of four or five rows of records. Now I want that as soon as I click on the Edit button of the form the first row gets automatically selected. An


Delimited text to 2 dimensional array (Resolved) -
Hi, I have a text file that contains two columns seperated by a delimiter;. I would like to store the values into a two dimensional array, so that I can retrieve one value from the array and it's corresponding value from the same array for furthur processing. Can this be accomplish


resolved - breaking string to array -
I have a string, and this string I want to put in an array, every charachter seperated, ex: I have this: exString = "Ab C 12 3 ! .." And i want it to be this: array[0] = "A" array[1] = "b" array[2] = " " array[3] = "C" array


List to array -
I have a public array called teams right... i also have a list box full of team names but i want to add these to the array when you click on a command button... any ideas on how i can do this? resolved


Array Boundaries -
Hey guyz, just found out! declaring an array in vb like ARRAY(10) actually means ARRAY(0) to ARRAY(10).. Unfortunately i didnt know this until recently coz ive been programming in C++ more often than in vb, i thought ARRAY(10) means 0 - 9....... Ummmmmm ouch! So this leads me to


Array question (Please Help) -
ok can i have an array that has 20 values but not in order like dim array(1 to 10 and 21 to 30) now i dont mean array(1 to 10,21 to 30) i want array to be array(1) ... array(9) array(10) array(21) array(22) ... array(30) how do i define that if i can?


Box To Image -
Hello, I have an Array .. Array(1 to 50, 1 to 50) each array is a number such as 1 2 3 4 the numbers refer to an icon in an imagelist. is there a way i can sort of CREATE an image file (such as BMP or JPG) using this array such as it will save a file like this: Array(1,


Stupid question about GetDIBits [resolved] -
I'm sure a similar question has been asked, but I wasn't able to find the answer to it. I'm trying to write a function similar to BitBlt in vc++ and I need to perform some calculations on each pixel of the Source DC. I breifly thought of using SetPixel but then realized that using a Di


Declaring an empty array of 4 element (without giving any value yet) -
Hi! I have an object that has a property array containing 4 elements, but without any value yet. So if I call array[0] I dont want to have an undefined index error... is there anything like array{4} or something like that, that would declare array[0] array[1] array[2] array[


multi-dimensional array (Resolved) -
I have a multidimensional array and would like to get the ubound of each dimension. How do I do this?


Deleted Arrays which are Out of Scope {RESOLVED} -
I need to erase an array in one procedure then do a check for its validity in another. After erasing, the array is out of scope. On Error Resume Next should continue past this point BUT I need an If/EndIf condition based upon whether the array exists or NOT. Any suggestions ap


How to find members of array..[resolved] -
How do i tell which values of my boolean array are true and which ones are false?


PHP Script Translate To VB 6.0 -
hi I am doing php script translation to VB 6.0 code i am really stuck of PHP Multidimensional Array This PHP Code is $L0 = array( array(175347046, 0, 0), array(3341656, 4.6692568, 6283.07585), array(34894, 4.6261, 12566.1517), array(3497, 2.7441, 5753.3849), ar


Is array a class that could make an object of a list of values (resolved) -
For the moment I only see methods and functions in the array-class with whom you can treat arrays (f. ex. Array.sort(myarray)). But I do not se any tools for creating, accessing and modifying arrays. For the moment I have to work this way: Dim myarray () as string Myarray(1) = &


Array Qtion -
I am using an Array, and the value of the Array will change according the the data its readying, Thats what is what I mean, the array it could be Array(4) or it could be Array (6) how can I make this work: if all the Array(i) = 0 then 'do something end if Meaning if every


Resolved - Cmd button array click event -
Hi If I have 4 cmd buts. in an array...and I want to use one of the buttons click events how would I accomplish this.... my cmd button array is cmdbutton_shift Thanks


Array of Pictures *resolved* -
hey, i have an array of 50 32x16 stdPictures and i want to save them in a 32x800 bitmap file so they are arranged in a column one above the other. How can i do this? thanx


array of structures (resolved) -
I have an array of type record and was wondering how i insert and item into it. My book doesnt have notation for how to do it.


How to add a value to an array (properly) - RESOLVED -
I am learning VB6 and need to add a set of values into an array. Currently I am really cheating on how I am doing this as I cannot figure out the syntax. I have a loop that returns a value (sName). I need to add the value stored in sName to an array. In .NET this was really easy


how to traverse the each node in vbscript -
hi friends, this is my xml <screen1> <title> <text>Title1</text> </title> <mainheading> <text>InfoWave</text> </mainheading> <subheading> <text>Home</text> </subheading> </screen1&


looping to assign an array -
I have an array array(2) that will store 3 values. - 0,1, and 2 (that IS right, i think) I need to assign array(0) a value that is returned by an indexof() function and repeat this two more times. how can I make the index number increase by one when assigning the array? array(


Diminishing an array (RESOLVED) -
How do you setup a one-dimensional array with staggered elements? For example: dim MyArray (10 to 20) AND same array with elements 30 to 40. MSDN talks about jagged arrays, but I can't VB6 to accept the code. e.g., dim MyArray () () as integer. I know that it can be done by d


(RESOLVED) How to create a function that returns an array -
Apologies if this has been covered before, I am trying to create a function that will return an array - I'm not sure how to declare this. If this is the declaration: Private Function NameOfFunction(blablabla) As Double I want "NameOfFunction" to be, say, a 10*10 arr


Traverse a Listview-- **Resolved ** -
I am trying to loop through a listview in order to process the items placed there by user interaction.. I have this: Dim A As Windows.Forms.ListViewItem For Each A In ListView2.Items MsgBox(A.Text, vbOKOnly , "Warning") Next and get the following error: