Create New Array From 2 Compared Program?

Jan 15, 2012

I have 2 arrays one is a and second is b. how do i compare each of them and insert to new array c?[code]...

View 10 Replies


ADVERTISEMENT

Create A New Array In Program?

Jun 13, 2009

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]...

View 1 Replies

Create JSON Array Using Program?

Mar 5, 2012

How to create this JSON array using vb.net array [code]...

View 1 Replies

Create One Array From Two Other Arrays In Program?

Feb 20, 2012

I have two arrays

a={a,b,c,d}

b={1,2,3,4}

now I want to create a 3rd array which should at least contains one numeric number and rest of alphabets, this code will generate unique usernames so it should not repeat the pattern of selection which is present in main array[code]...

View 2 Replies

Create A Program That Accepts A Square Array Size 4 By 4

Nov 6, 2010

Trying to create a program that accepts a square array size 4 by 4. Then it should print the totals of the rows and columns. I started with a form and made text boxes and created a print button. I made it so that numbers can be input into the boxes. When hitting the print button, it should print the totals of what was input, however, it isn't doing that. Is there a different way to write the array code so that it will print it? Should i not have text boxes but rather have labels with fixed numbers set in them?

View 11 Replies

Create A Program Which Reads A Text File Into An Array?

May 10, 2009

I'm trying to create a program which reads a text file into an array.

[Code]...

But that's just silly so how can I fix this? Lines isn't being assigned a null value it's being assigned the first line of text in the file which has text in it so I'm confused.

View 5 Replies

VS 2008 Create An Array Of Constant Variables For Program?

Nov 5, 2009

I want to create an array of constant variables for my program. But from everything I read about arrays they are handled by a number. I want to be able to pass back a variable that will hold the name of the constant as well as the value. How would you go about do that.I want to when I type the variable to have the constant name show up as I am typing.

View 4 Replies

Create A Set Of Grammar Rules For Speech Recognition Program With An Array

Jun 15, 2012

I have been trying to create a set of grammar rules for a speech recognition program with an array, but cannot seem to accomplish this task. Here is the general idea:[code]But this did not work, because I cannot convert strings into srgsoneof.

View 18 Replies

C# IntelliSense Delayed Compared To .NET?

Jun 6, 2010

In VB.NET projects, errors are highlighted immediately after cursor leaves the line. In C#, I have to wait several seconds for IntelliSense to highlight it. Also, the C# version doesn't show all project errors in "Errors List", unless you start to build it. Actually, it seems to work differently in every way. Is it possible to adjust that behavior?

I am using both Visual Studio 2008 and Visual Studio 2010.

View 2 Replies

Is .NET Weakly Typed Compared To C#

Apr 15, 2011

Yesterday I was at an interview where my interviewer (who admittedly didn't claim to be an expert on the subject) stated that "VB.NET is more weakly typed then C#" - (At the same time he couldn't recall an example). This statement seemed incorrect to me (particularly given that both languages use the same framework libraries for their types) and I advised as such and that perhaps he was confused with the option to turn Option Strict or Option Infer on/off.

At the same time I know that VB.NET has situations where it will do type coercion - leading to occasionally unexpected results (although I also cant recall under what conditions) - (Actually I think I just remembered that it was mainly when performing arithmetic operations with different types - whereas other languages will force you to be explicit (?) ).

View 4 Replies

Python Use In VB .Net As Compared To Excel?

May 1, 2012

I have an interesting issue I've run into where I can easily tap into python code from VB in an excel instance, as described here: Calling python script from excel/vba.However, when I mimic the exact same code structure in visual studio in a form, the pyscript.language = "python" line fails. Does anyone know if MSScriptControl.ScriptControl can be used in VB .Net to control python like you can in excel? This would be a lot easier than setting up a com object for my python scripts.

Example code (need to add microsoft script control 1.0 and excel object library):

[code]...

View 1 Replies

Interface Development Compared To MS Access?

Mar 23, 2010

I've been developing databases for research using ms access for the last few years. The application is used on accross a hospital network and while it was slow initially, itstarting to come to a grinding halt as numerous users are accessing it at once. I've been debating whether to try and develop the front end using vb.net in hopes of making the application faster.Does anyone know if this would be the case?

View 1 Replies

VS - Why Is IntelliSense Support For C# Lacking When Compared

Jul 4, 2009

However, for several years now, I have been working primarily in the .Net space. Initially, my transition into the .Net world consisted of writing and maintaining VB.Net code. VS provided almost all of the nice intellisense support I came to expect after years of working with the Eclipse/Java combo. Eventually my employer decided to do new development in C#. My initial impression of the intellisense support for C# was less than stellar. At times it seems as if VS has no background compiler for C#, but occasionally it does something smart, indicating there is some background processing there, but not quite enough to really boost productivity in meaningful ways. Is there any sane technical reason for this discrepancy regarding intellisense support between the two languages?

View 4 Replies

VS 2010 Text Compared N Override?

Mar 15, 2011

I have been doing this project for couple of weeks and i get stuck and cant find a way to do it. I need to compare this 2 txt files. So if the data in FILE A matched data in FILE B, the quantity in FILE B need to deduct the one customer bought and replace the new quantity. For example:

[Code]...

View 8 Replies

How Fast Is .net Compared To Native Code For Arithmetic

Mar 4, 2010

I need to write software that will do a lot of math. Mostly it will be matrix multiplication with integers to compute DCT. How much faster should I expect the code to run in native c as compared to VB .Net? Factor of 2, factor of 10, factor of 1000...?

View 3 Replies

Vb6 - Dotnet Is Bulky And Slow Compared To Vb6 Version

May 31, 2012

I am working on a large project with hundreds of dll's being used on the same machine, on the real large windows there is latency issues that I would love to address. The VB6 project was quick and effective but dotnet is bulky and slow compared to vb6 version, what changes from vb6 to dotnet would increase performance and reduce latency in the larger windows?

Working with VB08 3.5 Framework so parallel isn't going to work sadly, what other methods are there from a code standpoint could I use? DUring the conversion process could it be using parts of code that bog the system down?

View 1 Replies

Creating A Class That Can Be Compared To A String In A Switch Statement?

Jan 13, 2012

Is it possible to create a class in VB.NET that can be compared to a string in a switch statement? For example, let's say I have a class Foo:

Public Class Foo
Public Bar As String = "test"
End Class

Is it possible to implement some interface or override some equality operator so that I could use Foo like so?

Dim foo As New Foo()
Select Case "test"
Case foo
' It worked!
End Select

View 2 Replies

VS 2008 Form Displaying Different At Runtime Compared To Design?

Aug 9, 2010

Im having odd problems with how my form is displaying at runtime...if you look at the 2 attachments you can see at runtime the labels disappear under the check box's, but at design time they are positioned perfectly.

View 5 Replies

Asp.net - Radio Button List SelectedItem.Value Not Working When Compared To A String?

Dec 12, 2010

I am using VB.NET and I can't compare the radio button lists selectedItem.Value to a string, it doesn't work...here is the code: (I have also tried selectedValue it does not work either)

[Code]...

Why won't it evaluate that rblOne.SelectedItem.Value = "No" !?!?!? I tried rblOne.SelectedValue, that doesn't work, AND I added .ToString to both, which did not help, I even tried it w/ "No".ToString...this doesn't make any sense.

View 1 Replies

VS 2008 Textbox Tabbing - Cannot Find A Difference In Properties Of Textboxes Compared To Rest

Sep 1, 2010

I have a program that someone else designed the form on and sent to me to populate the code. I am not sure what could have been done to cause this problem, hoping for a quick oversight on my part. There are several fields of textboxes that the user enters numbers in. Normal behavior for textboxes is when you tab to them the current contents are highlighted. On one of these textbox fields, and only that one set of textboxes, the contents are highlighted like normal at first, but after the user edits the content of the textbox, if you tab to it again it will go directly into edit mode instead of highlighting the contents. Each textbox in the field does this individually, so if you just edit one, all the rest will continue to highlight contents until you edit them as well. It appears you don't actually have to change the value of the textbox, just entering edit mode and getting a blinking cursor is enough. I cannot find a difference in the properties of these textboxes compared to the rest.

View 4 Replies

Create A Fake Array Using Generics Instead Of Using An Array

Jun 23, 2012

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:

[Code]...

View 5 Replies

Create A Windows Form Application Program That Can Create Games Something Like Gamemaker Or Klik?

Aug 4, 2010

Hello I want to create a windows form application program that can create games something like Gamemaker or Klik & Play (butt less advanced) with D&D "Drag and Drop" events and actions.

View 7 Replies

Create A Program That Asks For Input Then Uses An Else Statement To Create A Handling Fee Balance

Nov 30, 2011

To create a program that asks for input then uses an else statement to create a handling fee balance.

Input: sales record - first name, last name, purchase amount, balance before purchase

Output: report - full name, old balance, purchase amount, handling fee, new balance

Definitions: handling fee is 5% of the old balance if the old balance is less than $1000.00 else it is 2% new balance = old balance + purchase + handling fee

Processing:
Ask for and receive sales information
Calculate new balance
Print output report
End the program when a purchase amount of 9999.99 is entered

View 3 Replies

VS 2010 Create A Program To Allow A Student To Create Their Own Schedule?

Nov 30, 2010

I have a project to do for one of my classes that i need help on. Its and extra credit so im left on my own. Project Create a program to allow a student to create there own schedule. what i am trying to do is create a checkedlistbox for the student to check classes they are taking, and need something else to pop up or to show in another box or listbox the classes they can take for the next quarter. I know it has to do with if then statements but i dont know how to write basically:"if (class is checked in checkedlistbox) then ( these are the classes you can take)".

View 2 Replies

Program That Will Compare Array Of Grocery List Items Glist And Array Of Coupon Item List

May 27, 2012

I have a program that will compare an array of grocery list items glist and an array of coupon item clist.When I compare the two and if there is a match somewhere in the array I want to have a picturebox visible.When there is no match, I want the picture box not to be visible. [code] The code seems to work great until I come to the else statement.When the code finds a match it displays the picture box and the msgbox without error, but as soon as the message box is cleared, even though i've input it as an ELSE statement, the picturebox goes false again.Does anyone have any idea of how I can "hold" the picturebox to stay visible while the match between the arrays exists?

View 18 Replies

VS 2008 Write A Program To Create A Shortcut In The Startup Folder Of A Different Program?

Jun 15, 2009

how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.

View 20 Replies

Timers.timer Lossing Time When Compared It To System Time

Mar 19, 2012

When I run my app at first its keeps time accurately for the first minute or so there after it starts loosing seconds, and by the end of the day its minutes behind.I've created a class called ServerTimeTimer that has a timers.timer object that elapses every second and adds a second to a dateTime variable, and a property to retrieve the date time.[code]

View 5 Replies

Create A .net Program And Allow Visitors To A Website To Download This Program?

Nov 15, 2009

I am very very new to VB.NET and would like to ask a simple question. I want to create a vb.net program and allow visitors to a website to download this program. However, I prefer not to have visitors download a zip folder. I would like to have a program that just gives a prompt to save in a selected folder, once the saved file is selected it prompts the person to download, and then when finished prompts the person to run the program. The reason is twofold:

1. I don't like the extra step involved with unzipping the file. and 2. I don't like the visitors having to look for the "main" file program within the new downloaded folder. So is there any way to have just one file for others to download without having it in a zip folder?

View 4 Replies

Create An Array Of An Array (or Arraylist Of An Arraylist) To Hold Strings?

Mar 20, 2012

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?

View 6 Replies

Create A Program That Installs Required .dll's For A Program?

Jun 3, 2010

I'm trying to create a program that installs required .dll's for a program due to a clean install..What I need to do is Get a value in the registry and use it for the program files path.. but I've noticed some pc's don't have the same configuration because of the version the user is using. Anyway This is what I have so far:[code].....

What I'm trying to do is find a registry key called "SoftInstallPath", if found I need the end of the path to goto the new directory(new_dll) not the old one (dll).. and if "SoftInstallPath" cannot be found.. I need it to find "ProgInstallPath" and use it instead and do the same thing.By the way I'm using Visual Studio Professional 2008 on a Vista x86 machine.Also error I keep getting is: Warning 10 Function 'FixPath' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved