array

  1. tgf-47

    Question How do I populate an array while creating a datatable? Breaking it up instead of fill

    I want to modify this function to populate an array with each item in the database. I have tried various options, but I just can't get it to work Private Function ConnectMe() As DataTable Dim conn As String = "Server=192.168.0.36;Port=3306;Database=wswc;Uid=root;Pwd=Jack"...
  2. N

    Sorting a two Dimensional Array

    I am writing an auto insurance application. I need to sort a three dimensional array in descending order based on an integer value in third field in the array. The CalcPremium function returns an integer value. Dim CarDriverArray(3, 3) CarDriverArray(0, 0) = "D1"...
  3. E

    Question Find Duplicates in arrays en count them as well

    Hi, I'm a little bit stuck with something, i seeked about a week and can't find a solution to my problem. This is my problem: i have an array with dates in it and i want a list with the dates and how much that date is sequel to the amount of that dates in the array. this is my code so far...
  4. T

    Picturebox Arrays?

    Hi All I have a quick question regarding multiple picture boxes. I am trying to design a basic version of spaceinvaders. I have 6 pictureboxes on my form and the idea is to add a value to the picbox.top property that moves the boxes down at a certain time and speed that i have set in my timer...
  5. Y

    Resolved Readline error?

    First off, apologies if this is located in the wrong forum! I'm new to the community, and haven't quite familiarized myself with everything yet. Anywhoo, I'm working on a small, simple program to take orders based on menu items and calculate the price. The menu is stored in a text file. When...
  6. B

    Question LINQ on array of objects

    Let´s say I have an array (I named it "Points") of objects. Each object has a custom property called for example "Selected". The property type is Boolean. Can I use LINQ to determine the INDEX of the element in the "Points" array where "Selected=True"? (I´ve ensured that only one element can...
  7. U

    Question Global array problem

    Hi, I am developing a piece of software using VB.NET which allows teachers to test and monitor their students progress. The problem I am facing is that I am using a Module to hold the questions array variable: Friend Questions() As String When I attempt to apply a value to each of the array...
  8. D

    Populate an array using LINQ

    I have an array wherein i have to populate some objects that are not part of another object. For e.g there are objects called viewgroup and membershipgroup.i have to populate the array with viewgroup obj that are not part of the membershipgroup. i need to do this using LINQ in VB.Net. can anyone...
  9. keeps21

    undeclared array error in included file.

    I have two files. (This is a simplified example) The first file declared variables - the second outputs the variables. The problem is that myArray is 'undeclared' when file2.aspx tries to use it. However varName is working fine. If I declare and populate myArray in the same way in file2.aspx...
  10. R

    web service xml (array hierarchy is too deep)

    vb.net 2005 web service asp.net The hierarchy of the generated wsdl (xml) has too many elements. Here is the code I started with... Public Class SalesID_Role Public SALESID As String Public VALID_ROLES() As String End Class which generates xml like... <SALESID>123456</SALESID>...
  11. keeps21

    Populate an array with data from variables

    I have an array. I want to add the values of 6 variables into this array, however I can't find a way to do it. If I knew the values I'd do it like this MyArray(i)= New String { ("id"), ("ans1"), ("ans2"), ("ans3"), ("ans4"), ("ans5") } However i don't know the values, but have 6...
  12. M

    Question how to create an array from a column in a datagridview

    hi there: im new to programming and i have the following code: Dim dt As New DataTable Dim da As New SqlClient.SqlDataAdapter("SELECT FEE_NAME, convert(varchar(50), convert(money, FEE_AMOUNT), 1) FROM FEE_TABLE ", m_Connection) da.Fill(dt) DataGridView1.DataSource = dt now this will show in...
  13. E

    Question picturebox array

    I want to add pictureboxes to a form as an array, how do I go about this? Additionally, how do I change the pictures every time my form is loaded?
  14. M

    Question [2008] Problem with Nested or Multidimensional Data Structures

    Hello, Right now I'm working on parsing an XML file and storing the data I need into some form of data structure to be used in by VB.net program. Here's my code: Imports System.ComponentModel Imports System.Xml Public Class getPackageDataForm Public defaultQueue As Queue(Of String())...
  15. Taien

    Public Array

    I'm fairly new to VB and I am making a game as part of my portfolio project in a class. I'm having some trouble with array declaration though. Here's my code: Public varSkillLearnedArray(100) As Boolean varSkillLearnedArray() = {True,true,true} I have option explicit on and option strict...
  16. D

    Question Search Array

    Hi, I have a large string array containing single words. I need to find out how many of a particular value are in the array. At the moment I use a loop and count 'em but having used Array.Sort I was attracted to Array.FindAll but cannot make it work. I think I understand the predicate (virtual...
Back
Top