How can I create the following array of associative arrays in Visual Basic (ASP)?
array(
array('customer' => 'khl', 'city' => 'bune'),
array('customer' => 'Kla', 'value' => 'Swa')
)
Hi can someone show me an example of a multidimensional associative array in vb.net. Need array to hold peoples name, there age and a few other settings. Want to be able to use a Dictionary to use People.Add.
I have an associative arry with key,value pair. I want to set the value of an existing key to some variable that is ok. I can even check whether the value is null or not. But how to check whether the key itself exists or not?
I need to create a .Net program that will access a webservice provided to me from a customer. I need to be able to call this .Net program from a VB6 program. Basically, this .Net program needs to be an in-between program between a VB6 program and a webservice.I'm not very knowledgeable about .Net so I am struggling to find a way to do this. When I search the internet I seem to find information on how to make a webservice. But, this is not what I need to do. I just need to be able to access a webservice provide to me and pass the data to a VB6 program.
I need to create something that will retrieve new Users from a VTiger CRM and create a FTP folder and user/pass on another server.
SERV-A: VTiger CRM, powered by MYSQL. With WSDL directory. SERV-B: FTP server
The reason why I thought doing a WebService is that I must constantly check for new users. The language used isn't an issue. How to automatically retrieve changes of a MySQL DB from a webservice // Better solution?
I tried hashtables, dictionary, lists and arrays in .net, all I could get is a simple key=>value array Is there a simple solution if not, is there a class or something for this?
my issue could be found simple but I'm founding it difficults in regard of dealing with array concept in oracle and vb.netI will start by showing to you a code done in oracle side1-this script should be executed in hr schema2-create a table and call it job_testas
create table job_test as select * from jobs where 1=2
This was an experiment to see if I could create a fake array using generics instead of using an array. I decided to try it, because I may use it if I find any advantages to using it over an array. it works, I am just asking for a second or third opinion, have I screwed anything up, or is there an easier way to accomplish this? If I use it, it will be for a 2D game I am creating, and is used to draw the 2D screen graphics, placing an image based on what image identifier is located at what coordinates. The value stored in the fake array is an integer that disignates the graphic to draw and whether it is passible or not, i.e. 0 = a floor image, 501 = a wall image that is impassible (any image number > 500 is impassable) The Class definition:
I have to send a request to Webservice and I have a working PHP solution, that I have to translate in VB.net
Here's the code working in PHP
//fill in the details of the contacts.userId is obtained from loginResult. $contactData = array('lastname'=>'Valiant', 'assigned_user_id'=>$userId); //encode the object in JSON format to communicate with the server.
[code]....
Naturally I imported a reference to a Json library and Imported (Imports Newtonsoft.Json)?
I want to create an array of an array (or arraylist of an arraylist) to hold strings.I want to fill an array1 with string values Then add this array to array2. - but only taking up 1 row in array2 e.g something like array2(index)=array1 Then clear array1 then loop through this again with different data, and add it to the array2.so will end up with something like
array2(0)... contains a collection of array1 data array2(1)... contains a collection of different array1 data .. and so on
i think i need to make new instances of array1 each loop, but not sure.I dont mind if it uses arrays, or arraylists, or lists, or structure of arrayslists?
Ive tried making my own array, and ive practically completed it, but it doesnt seem to work. The issue seems to be that it cant convert string to type double. but do not know how to fix the error.[code]...
I need help creating a batch of Grand Totals each time enter my value and click Calculate.The code below gives me my Grand Total, now I would like to enter a new set of values and store the previous amount(s) until I'm ready to populate them in a Message Box.
Dim sum As Decimal = 0 For Each total As Decimal In totals sum += total[code]....
It was so simple in VB6 but I don't know how to approach it in VB2010. I've looked the internet but each site seems to have a different solution and masses of code for something that could be done in a few lines in VB6.Here is the code I want to use. How do I go about creating a control array of 100 picture boxes pic(1) up to pic(100)?
Code: For y = 0 To 9 For x = 1 To 10 tempObject = (Mid(StrRow(y), x, 1))
I need to create an array of decimals by getting input from the user. I know how to create one of random numbers but do not know how to get the input from a user through a text box to a list box.
Possible Duplicate:VB.Net Initialising an array on the fly
This maybe a stupid question, but its got me exasperated. How do I declare a new array inline? Is this possible? I've tried all of the following and they all don't work.[code]...
The more I read my book the more confused I get, as the programming example is not even close to what this assignment is I am to modify my existing project to keep track of an order in an array.
Using VB2010, I would like to create an array of buttons and a sub procedure that when I send the index number, I will be able to change the text on the specific button.
Dim myBtn as button={button1, button2, button3} private sub GetCaption (ByVal x as integer) myBtn(x).text="OK" 'If x=2 I should execute button3.text="OK"
[code]....
call GetCaption(2) 'Call the sub and change the text on button2 to say OK.How do I make it work?
I want to create an array of tcpclient 1 to 5. i know it can be done by arralist but how i will add array of socket in arraylist and send/receive data.
I'm writing a ray tracing program that uses snell's law to trace rays through a system of lenses to examine abberations in a given design.I have a class called lens, which holds variables for example, name of the lens, description, number of elements.I want to be able to have a sub class or array within lens (or some other way to manage this data).I wont know what number of elements is until run time.
So I would need to define the array at run time.Part of the idea of my program is randomly generate lens elements within given rules (as in a massive lot), keep the top designs and continually refine them by making billions of micro adjustments to the variables that define the lens etc, which I can pick up later on as it'll save the database/variables.For example, say Lens(63).NumberOfElements = 6.
I want to be able to access Lens(63).Element(3).Radius1 Etc, there will be a bunch of variables under Element, such as Radius1, Radius2, refractive index, horizontal diameter, vertical diameter, and spacing between the next element if it isnt the first.
And Lens(70) may only have 4 elements etc. How can I define a different array size like that in the class under different parent array indexes at run time?
How to create four PictureBoxes array at design time e.g. pic(0), pic(1), pic(2), pic(3). In VB6 set the Index property of PictureBox but VB.NET hasn't this property.