hey,I have two buttons Start button and Stop button .I run my program by clicking on start button. I want to stop the program during the start button . But the program will not responde until the start buttun finish its job. How i can do check the stop buttun during the start. i heard about threading but i do not know how i can do it. Please Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button3.Click //my code //check always if the user push stop if no continue if yes go to this sub //my …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to store the contents of a file containing names of herbs and spices (items) in a 2D array called PantryContents. Then I'm trying to add an item to that array. It seems like only one item is being stored at a time, but the output is correct but when I check the content of PantryContents, only one item shows up (like it's not 2D). This will be split into functions eventually.. (that's why the format is a little funky), I just needed to make it work all together first. Any ideas? This is what's in the file "Pantry.txt": …

Member Avatar
Member Avatar
+0 forum 2

When i did ppc for my websites I create single campaign and create two ad groups for domain. I want to know that is there any way how can i check that for haw many domains i am running PPC campaign without going inside campaign?

Member Avatar
Member Avatar
+0 forum 8

I have more than 40 or so fields on a php page, the fields dont conatain lots of data but they are allot for users to complete. Is there a way (I did this in VB.Net) to save once the user has edited a field or in VB case "Leave" call the save command to just update the MySql db so when the update the form it saves every time you leave move to the next textbox or dropdown Save on the fly type thing OR save every two minutes ... Currently I have to let my users click save …

Member Avatar
Member Avatar
+0 forum 4

i have the db with serial no and reference no. serial no is auto_increment value. it is worked perfectly. but i want ref no column also as auto_increment value start with 0000001,0000002,0000003...., how to do that? i cannot able to add two auto_increment values in mysql.

Member Avatar
Member Avatar
+0 forum 2

$a = array(000,400,000,500); $b = array(300,400,450,500); $i=0; foreach($b as $k=>$v) { if($v==$a[$i]) { $b[$k]='000'; } $i++; } print_r($b); i want same thing in two dimensional array $a = Array ( [0] => Array ( [0] => 000000 [1] => 000400 [2] => 000450 ) [1] => Array ( [0] => 000350 [1] => 000400 ) ) $b = array(0=>000350,1=>000400,2=>000450) //pre-defined installment amount values

Member Avatar
Member Avatar
+0 forum 4

Sorry guys, asking simple question for which i don't have the solution. please help me. Can you modify my query to return single column with both name and sname ?(rename the column if required) select name, sname from claim,CV where claim.num=cv.cnum

Member Avatar
Member Avatar
+0 forum 2

I'm just trying to figure out how to get everything after the first two words in a line. Right now, I've got the opposite - the first two words themself: ^(\S+ \S+) I want the opposite of this. Thanks!

Member Avatar
Member Avatar
+0 forum 2

sir i want to get data between to tag... example:(showing in my view source) <img class='stat_icon' src='/images/green.png'> **data to be extracted**</a> or like <input type=hidden name=timestamp value='**data to be extracted**'> for the first example i wrote like: Imports System.Text.RegularExpressions Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim requestt As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("my desired link") Dim responsee As System.Net.HttpWebResponse = requestt.GetResponse() Dim sr As System.IO.StreamReader = New System.IO.StreamReader(responsee.GetResponseStream()) Dim sourcecodee As String = sr.ReadToEnd() Dim pattern1 As String = "<img class='stat_icon' src='/images/red.png'> " & _ "(.*)</a>" Dim m As Match = Regex.Match(sourcecodee, pattern1) If m.Success Then …

Member Avatar
Member Avatar
+0 forum 4

Hi Everyone, I have a program that takes data in a two dimensional array, performs simple calculations, and then writes the data to a file. When I call the function that calculates and writes, I get an error on the two dimensional array stating: "argument of type 'int' is incompatible with parameter of type 'int(*)[5]'." .I am not sure why this suddenly changed to italics....ok but I am not sure why this error is happening. //Call writing function storeProportions(output, dropsOf[3][4], totals, numFailed); //located in main //Function prototype void storeProportions(ofstream output, int values[][NUM_COMPONENTS], int totals, int numRows); //2d array in main …

Member Avatar
Member Avatar
+0 forum 15

Hi! It's me again and [this](http://en.wikipedia.org/wiki/Decoder) is a decoder! **The goal:** And I'm trying to make a program that solves logical problems related to the decoder device. For that I need a loop that write true/false into a boolean[][] based on the rules. Say we have a decoder with 3 inputs. That means that it has 8 outputs (2^(numberOfInputs) = 8). I need a method to write this (example of 3 inputs): |0|0|0| |0|0|1| |0|1|0| |0|1|1| |1|0|0| |1|0|1| |1|1|0| |1|1|1| Notice the third column (actually called column 0, the middle one would be 1, the most left one 2). 2^0 …

Member Avatar
Member Avatar
+0 forum 4

i have the following tables in my database: CREATE TABLE `tblbrands` ( `brandid` tinyint(2) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, PRIMARY KEY (`brandid`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; CREATE TABLE `tblcars` ( `carid` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `brandid` tinyint(2) unsigned NOT NULL, `typeid` tinyint(2) unsigned NOT NULL, `model` varchar(30) NOT NULL, `price` double(9,2) unsigned NOT NULL, `year` smallint(4) unsigned NOT NULL, `mileage` int(6) unsigned NOT NULL, `status` tinyint(1) unsigned NOT NULL, `description` text NOT NULL, `image` varchar(60) NOT NULL, `thumb` varchar(60) NOT NULL, `sideImage` varchar(60) NOT NULL, `rearImage` varchar(60) NOT NULL, `sideThumb` varchar(60) …

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I'm working on a holiday scheduling app and I was wondering that if a person wants his holiday for example 10 days. id uid data1 data2 ore tip_concediu ts 7 244 2013-01-25 2013-02-05 3 2 2013-01-25 16:08:35 How would it be possible that I could track the holiday for each month ? January - 6 days February - 5 days In this case, January has 31 days, I would like to group the days into months, in January I should have 6 days and the remaining in February, is this possible from a query? Thanks in advance Szabi.

Member Avatar
Member Avatar
+0 forum 6

Hi all, hope you can give me some help to edit my code. I'm unaware how to merge two arrays and allocate them to a third array(of the right size) and let's just say for the sake of things, we'll call it C. I went ahead and instead used the StringTokenizer, but I assume there's a simpler way to put it together. (Also, I'm getting the data from a .txt file, for my instance the file is called "SortedArrays.txt") import java.io.*; import java.util.*; class SortedArrays { public static void main(String args[])throws FileNotFoundException{ File f = new File("SortedArrays.txt"); Scanner s =new …

Member Avatar
Member Avatar
+0 forum 5

So this is going to be the last project for my java class. Any input is appreciated and I'm generally posting it here because someone else might benefit from it. It is not done yet but when it is I'm going to post the full code. I made a video about this u can see it here: https://www.youtube.com/watch?v=wWmsXcuW6FE The ball class: /* * This is the Ball class */ public class Ball { //variables for the x and y position private int xPos,yPos; //the direction of the x and y position. Dy is set to -5 because, //remeber that the …

Member Avatar
+0 forum 0

Hello perhaps you could help me with a problem please. I wish to display a table of results using a JTable. Customarily I use a 2D Object array which is initialized with the data in a manner as follows: public Object[][] data={ {"Biology",25},{"Additional Math", 54},{"Geography",43},{"History",21},{"Spanish", 47}, {"Information Tech.",110},{"Technical Drawing",54},{"French",45},{"Physics",76},{"Chemistry",76}, {"Principles of Accounts",34},{"Principles of Business",30} }; However this time, initialising won't work because the data that I am receiving will be subject to change, thus the 2D array needs to be created at a later point. The added data that I will be receiving, will come from two(2) arrays, one containing …

Member Avatar
Member Avatar
+0 forum 2

hello i' trying to take out data from start time and end time from my database record..any idea how to solve it for example: 2012-09-08 12:09:33 roadA 2012-09-08 10:49:09 roadA 2012-09-08 10:39:27 roadC 2012-09-08 09:09:33 roadA if i select 10:39:27 to 12:09:33, then only 3 data will be display...

Member Avatar
Member Avatar
+0 forum 2

I would like to know the best way to manage the two drop down menu on the PHP page. 1st menu : Select Type of House (House1, House2, ) 2nd menu : Select Number of Rooms (1,2 .. 12) The system should be displayed price based on selected items. Need your suggestion for manage this system in order to make it easier for future use.

Member Avatar
Member Avatar
+0 forum 4

Hello Community, I need help with this script, i can't seem to use this to switch beteen dll files that contain a form eg. if i use it to open a form from the dll file called "Dll One" then when i click the button again it still opens the form from "Dll One", but i want it to open the form from a dll file called "Dll Two". (I have uploaded the form) Please Help...

Member Avatar
+0 forum 0

Hi, I was assigned by my teacher to create a simple calculation program about movie tickets that are sold in a local movie theater. So, I created the coding, and it turned out perfect. Here it is: import java.util.Scanner; public class MovieTheater { public static void main(String[] args) { String movieName; double adultPrice, childPrice, totalAdultPrice, totalChildPrice, grossAmount, percentageDonation, amountDonated, netSale; int adultNumber, childNumber, totalTickets; Scanner keyboard = new Scanner(System.in); System.out.println(" Enter the Movie Title: "); movieName = keyboard.nextLine(); System.out.println(" Adult ticket price per person: "); adultPrice = keyboard.nextDouble(); System.out.println(" Child ticket price per person: "); childPrice = keyboard.nextDouble(); System.out.println(" Number …

Member Avatar
Member Avatar
+0 forum 2

**Tic-Tac-Toe without a class** Write a modular program that allows two players to play a game of tic–tac-toe. Use a two-dimensional char array with 3 rows and 3 columns as the game board. Each element of the array should be initialized with an asterisk(*). The program should display the intial board configuration and then start a loop that does the following. · Allow player 1 to select a location on the boardfor an X by entering a row and column number. Then redisplay the board with an X replacing * in the chosenlocation. · If there is no winner yet …

Member Avatar
Member Avatar
+0 forum 3

Hello, I am facing a problem in creating setup project in C# window applications. Actually I have made two pojects, one fee managment system and library management system. In library management project i have merged the fees management project, so that i can reuse Student entry and updation forms in library management project. It is working fine. But when i am creating the setup for library management project it adds the EXE file of fees project in library project setup, so when i install it on any computer, it makes EXE files for both library management and fees management. I …

Member Avatar
Member Avatar
+0 forum 1

I am working with CSVfile program. I have already calculate something from it. Name,Age,Sex,Pincode,Disease 1. aaa,4,M,35265,flu 2. bbb,4,M,35652,Gastric 3. eee,6,F,35265,Brain 4. sss,7,M,32564,flu I have made program for calculating no. of age,sex and pincode as attached in the code. In this i have calculated that age=4 comes how many times and also how many distinct ages are there ion the file. Also Original file has so many records , nearly 100 records(Rows). Now i am stuck with one problem. I just want to find that there are how many rows having age=4 and sex=M or sex=M and pincode=35265 or age=4 and …

Member Avatar
Member Avatar
+0 forum 5

Hey guys, jackbauer24 here. I am about to finish Final Fantasy 10. I really liked the way we fight(commands), how we upgrade(sphere grid) and most importantly the storyline. I live in India. Could you recommend another Final Fantasy game? My requirements are:- 1.These are the minimum graphics ie- I don't want graphics lower than this. The graphics weren't too bad in the game.(Guess then only the next versions will do like ff11 and so on.) 2.The method of fighting should be same ie-I don't want Prince of Persia style fighting. 3.(Optional, good if it is there)-An upgrade system. 4.A good …

Member Avatar
Member Avatar
+0 forum 4

Hi All Im trying to get this to work, but can only get it to work without putting the form tags in, and wont work with more than one set of the inputs. the below is the result when i use ajax to search for item names, then want to caluculate the quantity * length (for total quantity), then total quantity * rrp_exc. the result should show in the the total field. It works, but not if the form tags are in and if there are multiple rows of the below inputs, eg, when there is more than one item …

Member Avatar
Member Avatar
+0 forum 3

The End.