I am trying to complete a program that creates an array of the states that begin with New from an array with all 50 states. The code below is what I have so far and cannot seem to figure out what I am missing.[code]...
im trying to make an example program for a teacher friend of mine
Springfield Toledo Youngstown
[Code]....
thats just what i have so far but im really having trouble getting the other part into a 2d array. i want the second half to look like this when done: the oppsite of what it looks like in the file.
I wrote this do while loop it is supposed to search through an array until it finds an account number that matches. but I have a problem I cant check the very first part the array when its subscript is 0 because of where i put increment x but if i move it to the end it won't work how can i fix this?
Public Sub AccountNumberSearch(ByVal a() As Account, ByVal accnum As Integer, ByVal numacc As Integer) Dim x As Integer = 0
I'd like to know if it is possible to refer to section of an array. e.g.
dim a(10) as integer foo(<reference to array a starting at item 2>) 'only use items 2 to 9 of the array ... sub foo(byref a() as integer) <do something with array> end sub
Note that I don't want to copy the array to a new array or pass in indices, if I can avoid doing so. Subroutine foo should be able to process the array without knowing if it gets the whole array or just a section.
I am working on an assignment where I need to have a product list that is loaded into a list box upon the form loading. This is generated from a txt file in the /debug folder upon loading. Now my question is how do I have the product names show up in the list box when there are 3 separate parts to each product. The product, the cost, and the quantity in inventory, and all I want to show up is the product in the listbox, where the rest show up elsewhere.
CODE:
'This procedure loads the data for the array from txt file. As well as loading the Product.txt file into the system when the program loads.
im making an application in vb.net (duh!) anyway i have created and coded the whole project and it performs exactly as i want it to (i dont need code help). my problem lies with the fact that my project is 2-3 parts
1.a setup form that gathers inital data about the enviroment stores this data encrypted in a config file. after inital setup this form is not displayed again. but needs to be run on both computers
2. the second form is the real application form im in the process of turning this part in to a background service anyway this form is the one that establishes the connection between two nodes it works correctly
3. the config files
anyway here is my problem i want to make this application distributional with just one file the (.exe) and have this .exe make everything else happen. it runs the setup form and creates the first config file which it does then it needs to produce a copy of just the second form and the config file to transfer to workstation #2 that will run independtly without the whole application which i cant make happen then it needs to turn both workstations application on by only starting one on either computer and invoke the other computer to start its corrosponding app also no idea how to make this happen any ideas or suggestions as to where to look to try to find my answers.im thinking i might need to make two seperate applications (a setup app, and the running app) and include them both in a project and use the setup.exe to to package them together this is a little side project that im making for my self to use to make programming a little easier so i plan on giving it out to some fellow students to test and tell me what they think so im not really worried about ease of use or complicated procedures yet but if it turns out to work and actually be of use to anyone else i would be willing to rewrite it to distribute to the masses but for now i just want it to work for me.
my requirement is that i have to count occurrence of a certain date and between two months suppose i have 10-jan-2012 now i have a date range 1-jan-2012 between 1-feb-2013 my requirement is that if i find 10-jan between 1-jan-2012 between 1-feb-2013 irrespective of year i know that 10-jan will come twice between 1-jan-2012 between 1-feb-2013 i am not understanding how to do this.i meanto say that i have to compare only day and month part of the date which will solve my problem
One number is represented with four hex values.First two hex parts are my "whole number" part, third and fouth hex numbers are my "decimal" part. I just wanted to store my complete number (whole and decimal) in an excel table.My problem is following when I am storing whole part and decimal part of my number separately, then it works fine am getting f.e. 3017 and 0,9445123 in my excel table, but when I am concatenate them, then I am getting following expression in my excel table f.e. 30,179,445,123 but I want 3017,9445123.
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 trying to create the following program Store in a 1d array a set of 5 place names and in a 2d array the distances between the places. Ensure that the order of the places is the same in both arrays. When the names are places are input the distance between them is displayed. If they are not both in the table a suitable message is displayed
Dim town(1 To 5) As String
Dim Dist(1 To 5, 1 To 5) As Integer
Dim First As Integer
[CODE]......................
I think the best way forward is pass a parameter to the function findnumber.
How to cut part from this string..."abb.c.d+de.ee+f.xxx+qaa.+.,,s,"... where i know position by this: Result is always between "." (left side of result) and "+" (right side).I know number of "." from left side and number of "+" from right side, to delimit resulting string.Problem is right side, cause i need to count "+" from end.
Say... from left side: begining is at 4th "." ( this is easy ), result is =
I'm making a magnification program that has a form that follows the mouse around but I can't figure out how to do the magnification part. I thought of using a picture box and somehow get the image that would be behind of the form and just zooming in on it a bit.
seeing i still am a bit of a noob to programming i was wondering if any one could help me out. Iam using the sendmessage to scroll a textbox and i was thinking it would be smart to do that in a other thread seeing the routine uses the thread.sleep methode to control the scroll rate.... but iam stuck at the "how to use a thread part". [code]
The following code reads an XML file and selects the CREDIT_SCORE node with the lowest value. Works fine if there is always a CREDIT_SCORE node. However, I get runtime errors if a PLUS_BORROWER node does not always have a CREDIT_SCORE child node (especially the first PLUS_BORROWER). I added /CREDIT_SCORE to the end of the XPath (and removed scoreNode references) and now it always selects the minimum CREDIT_SCORE. But I do not get the PHONE_NBR.
First - getting the minimum CREDIT_SCORE in a single XPATH is my primary need. And adding the /CREDIT_SCORE to the XPATH accomplishes this.[code...]
I've spent a while searching around and I can't find a solution to this:I have a transparent, borderless form that displays a clock. I can load this just fine, but I want the clock to be part of the desktop, so it cannot take focus, is behind other applications, and is not hidden with Win+D (similar to applications like RainMeter).
I need the solution to work with VB.Net (I'm using 2010)
I am trying to figure out the best way to implement a certain part of my model.I have an entity named Customer which has CustomerLocations (1-*) which have SalesOrders (1-*) which have Invoices (1-*).I want to allow them to have multiple addresses (Billing and Shipping) per customer and per location. I want to store those values in the sales orders and invoices, not a foreign key, what if they delete one of their addresses later down the road.I have tried complex types, but then they can't have multiple, can they? And having an Address entity, customer --> address (1-*) is ok, but a bit clumsy. How would you have a collection of billing and shipping addresses.?
I am trying to figure out if I have a textbox and user entered and another user wrote How can I have an IF statement to check if there's a bk= SOMEWHERE in the text and if there is then DO something.It has to search for bk= because everybody wont enter hello my name is bk= john, it will be diferent combinations like
I have a data structure like this :- myvar.mylistdata where mylistdata is of type list (of list (othertype)).
I want to then move the elements of a specified sub list to another list of list var like tmpvar.mylistdata, so i have been trying code like this[code]...
I would like to display only part of string. I am able to do that as long as my string is constant, how the string is not constant. How would display only the last part of my string. The string will actually be displayed by using a browse button and selecting a file.