Write A Program That Will Generate A Pattern Using Do While, If Else Statements?
Apr 26, 2011
write a program that will generate a pattern using do while, if else statements,and do until statements. I have been using google but I can't find anything. I need to generate patterns a certain size 6 by 6 or similar such as something like a checkerboard but where the ^ symbols is there a suppose to be a blank space
*^*^*^*
^*^*^*^
*^*^*^*
^*^*^*^
*^*^*^*
^*^*^*^
View 3 Replies
ADVERTISEMENT
Oct 11, 2009
Can someone give me a site to a tutorial that will help me write a program that will generate a pattern using do while, if else statements,and do until statements. I have been using google but I can't find anything. I need to generate patterns a certain size 6 by 6 or similar such as something like a checkerboard but where the ^ symbols is there a suppose to be a blank space..
View 3 Replies
Jan 17, 2012
I have found a major bug with this game Ive been working on for some time. The best way to make this game would of likely been by using an array. Problem is I dont know how to use arrays that well and I don't understand them. So I used a lot of picture boxes and If statements.
So here is the problem. When you click on the box its suppose to check to see if its a bomb or block. If its a block it busts the block, if its a bomb it will explode. Now here is the problem. Each block is not holding its own value or "block type" which determines if its a bomb or block. So when you click on a block and lets say it says its a bomb, the next block you click rather if its a bomb or not will explode. So its not checking the block value you click. instead its just grabing the last value generated. I will only show you short blocks of code because the code was written in a pattern form and it just repeats its self. If you post a reponse, remember im still newb and try to post samples/solutions using code ive given.
'Random Block Generator
Public Sub RandomBlockType()
Randomblock = New Random
SelectBlock = Randomblock.Next(1, 5)
[CODE]...
View 1 Replies
Oct 24, 2010
My project is GUI based. I want to write program in vb.net take some input from user and then i hav to genarate hex file so that it can be run on microcontroller. I just want to know weather hex file generation in vb.net is possible or not?
View 2 Replies
Aug 24, 2011
this is the problem.Write a program to generate a business travel expense attachment for an income-tax return. The program should request as input the name of the organization visited, the date and location of the visit, and the expenses for meals and entertainment, airplane fare, lodging, and taxi fares. (Only 50% of the expenses for meals and entertainment are deductible.) The output is displayed in a list box that becomes visible when the button is clicked. Sub procedures should be used for the input and output.sample input and output can be shown here: Book reviews: An Introduction to Programming Using Visual Basic 2005. Chapter 4 Programming Projects
my error is "too many argument in Public Sub InputValues(.......)"
my code is this: i used indexof because for example the user inputted a date with a year then the output will ignore the year. only the month and specific date will appear.
[code]...
View 6 Replies
Jan 26, 2012
I have 2 tables in MySQL database. These table were joined through a query and handled by a dataset. Im displaying these data through setting the dataset as the datasource of my datagridview. But when it comes to Update, Insert and Delete statements, I got an error because the sqlcommandbuilder does not generate statements in multiple tables.I want is, when I press the update button..all the changes made in the datagridview will be updated in the database. Can i make it without creating a datasource in design mode or through smart tag? If I have to manually create an UpdateCommand for adapters..Can I have a code snippet for that?
View 1 Replies
Nov 1, 2010
I don't understand the AND function.
I'm trying to say:
CODE:
It all works, except for the AND part. And I don't wanna write out a bunch of if statements just for this one thing.
View 3 Replies
Oct 7, 2011
Im trying to figure how to use the IF, ELSE statements OR the Select Case statement to write this program.I'm using Visual Studio 2010. The program is suppose to allow the user to input their weight in a text box and from group box 1 the select whether theyre male or female using the radios and they select inactive or active from group box two and the calculate but will determine how many calories they should intake based on the criteria below.
[Code]...
View 14 Replies
Feb 2, 2012
I am trying to write code with IF statements for a payroll calculator. The first IF statement is getting a bit confusing. I have three text fields that I want to ensure have data before proceeding with the next set of code. This is the part I am not sure I am doing right.
IF IsNothing(txtHoursWorked.Text) OR
IF IsNothing(txtEmpName.Text) OR
IF IsNothing(txtHourlyPayRate.Text) Then
[code]....
View 6 Replies
Apr 19, 2010
I have the following code sample, where the only difference between the 2 parts of the If statement is the less than/greater than operators.Is there a better way to write this?Could almost do with being able to define an Operator variable.
If myVar = true Then
Do While (X < Y)
'the values of X and Y will change within this loop
[code].....
View 4 Replies
Jun 23, 2010
Write the statements to declare a local one-dimensional array named intNumbers.The array should have 20 elements
B. Write the statement to store the value 5 in the second element contained in the
intNumbers array
C. Write the statement to declare a form-level one dimensional array named mstrProducts.
The array should have 10 elements.
D. Write the statement to store the string "Paper" in the third element contained in the mstrProducts array.
View 2 Replies
Jan 2, 2012
I am creating a windows program with VB and an Access database. I have a list view that displays on column in the database and I have that working due to the table adapters in VB. What I am trying to do is when the user clicks on an item in the list view, the program will query the database and put that info into text boxes. I am having the hardest time and can't seem to figure out how to use custom sql statements manually in
the program.
View 2 Replies
Feb 18, 2012
What I need to do is to have my program look at 2 different values then return a value.
Here's an example:
If my tube material = SA-214 and the tube gauge = 20 then my tube wall thickness = .032. The thing is I have 5 different types of tube material and 12 different tube gauges so based on which tube material is selected and which tube gauge is selected the tube wall thickness will vary. So if I select a TM of SA214 and a TG of 14 then my tube wall will be .076.
View 3 Replies
Nov 7, 2011
I am trying to use Bind Variables in my SQL statements which I pass to an Oracle database, but I get the Oracle error ORA-01008 Not all variables bound.[code]...
View 17 Replies
Jul 14, 2010
I have a code which generates next number after clicking the button NEW like if there is 1 in table while clicking NEW it displays 2. what i want is default im inserting 001 in table then after clicking NEW button it must show 002 instead it is showing 2 only.[code]...
View 1 Replies
Nov 14, 2008
I have an exe with certain variables that need to be changed for each "make" of the program so that each one is customised, but what I need is to create a program that can edit these variables and generate a new exe, or something that can take the source files from my exe and edit the variables then recompile it. Now I don't want to hear "why not just do them by hand", if I wanted that I wouldn't be asking how to do this, I just need this because I need to create 1000's of these custom exes, and I figured that if I could make a program that can do this (edit the variables and compile new exe) then that would make it easy on me since the variables I need to change go in an order from 1 - 1000. I also need it to work on a regular pc not one with all the special VB plugins and stuff, it needs to be able to work on a fresh install of win xp.
View 1 Replies
Sep 14, 2010
I want to write a program to write in an xml file in this format:
<?xml version="1.0" encoding="utf-8" ?>
- <Orders>
<Item id="1" SKU="998123" Description="Super Widget" Quantity="100" />
[Code]....
View 2 Replies
Jun 21, 2009
Ok, so I'm working with a team of people/programmers and we are all trying to explore the possibilities within Visual Basic 2008. As such, we are all working on our own programs at the same time, but all for one small organization. Well, I'm working on making an installer that will bascially do as follows:
View 4 Replies
Jan 7, 2010
I would like to generate a static URL based on a few parameters.The page serve the file for downloading is called CertificateDownload.aspx ,I am generating the download link in Report.aspx.These 2 files reside on the same physical folder.I do not like the replace method ,but I could not think of another way of doing it.How can I improve my code or what is a better way of doing it.
I need the absolute url to be displayed as text in the web browser.[code]...
View 3 Replies
Oct 14, 2011
How I can generate barcodes in my vb.net applications?
View 3 Replies
Jan 26, 2009
I want to generate a dynamical graph or bar chart X vs Y . Please send me a example I can manage the rest
View 2 Replies
Feb 20, 2007
I have tried to google it and then tried to search on codeproject as well but unable to find an article in which there is some good guidlines and walkthroughs for making reports using Ms Access in VB.NET.
View 3 Replies
Jun 29, 2011
I need an application that generates executables with another code
How can I do this in vb.net?
View 1 Replies
Sep 27, 2011
I was working on a pretty basic program to generate a random name and number and then put them together and submit into a form through webbrowser.The random number part is fine, but I'm having troubles trying to create a random word. Any directions on what to try?
View 1 Replies
Oct 27, 2009
I'm trying to write code to generate a random code for a textbox. It has to contain both numbers and alphabets. This is what I have so far
Function HomeIDCode(ByRef random As Random) As Random
Dim strValue As String
Dim strAlpha As String
[code]....
View 2 Replies
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
Apr 1, 2007
I am working on a Bingo game and I am stuck. I got the program to generate random number but they are not unique. I dont know how to fix this. I have researched online and nothing this is my last resource. I am using Visual Basics 2005 Express Edition. [code]
View 9 Replies
Jul 30, 2011
I was wondering if it was possible to generate fields or details (they are called in IDE) of a xml tables .When you create a database than go into the Datasources and find the table you want than there is a drop down box with datagridview and details.When you select details and than drag the table over to your form ,the IDE creates or the nessiary fields to add and view the data.
If Possible ,How do I do this Using a xml file and at runtime .I have already managed to create the xml as a dataset and view it in a datagridview .But how do I create the fields for the tables .BTW the XML has Multiple tables?
View 1 Replies
Feb 22, 2010
I am a newbie programmer and I need a way to generate random numbers for a program I am working on. It just needs to be something simple that generates a number and allows me to assign it to a variable. I would like it to be something small say 1-10 would be good and an explanation of the syntax would be helpful
View 9 Replies
Sep 20, 2010
i have to write a program for my VB class that consists of a resistance checker program. I've searched like a madman to help me through this and I have found nothing >. The program consists of 2 combo boxes, the first one is the nominal resistance drop down list of the numbers :100, 150, 220, 330, 470, 680, 820 and 1000. The second list is of the tolerance numbers; +/- 0.4%, +/-0.6% and +/-0.8%. Now what i want to do is select a number from the first combo box and select the tolerance level of the second combo box and i input the resistor of said value into the text box. when i click the check resistor button it should display a message saying if the resistor is in or out of tolerance. For now I have the form all laid out and the values inputted into both combo boxes and i can go to run the program i am able to select said values. Now my problem is trying to get the right code so that i can check the resistors value.
View 2 Replies