199,125 Archived Topics
Remove Filter ![]() | |
Hi, I have an int method that checks an array for a certain number. If that number is NOT found I won't to 'return null;'. I get this error "incompatible types" "found : <nulltype>" "required: int" How can I resolve this? thank you, Michael | |
Hi Guys, I need to write a simple PHP for the following. Logged in as: Shabbaranks Last visited: 22 Hours Ago at 4:47 pm Private Messages: Unread 2, Total 2. Any ideas? | |
![]() | I've had a good trawl through search and Google, but can't get to grips with a problem. I don't know if it is possible, but here goes: A friend asked me to install a few mods to his phpBB3 site. No problem. However, there were a few that required SQL … ![]() |
can someone pointing me how to get a command in checkbutton1 be executed after user check it and hit ok button?.for example: in the attached picture, if user check the 'open terminal button' and hit execute,the program open terminal window. | |
kindly help me to resolve this error. I have a function inside a namespace in my header file . This is my header file #ifndef _MATPACK_H_ #define _MATPACK_H_ //-----------------------------------------------------------------------------// #include "scene.h" // class Scene #include "mpmatrix3d.h" // 3d matrix template classes #include "vector.h" // vector and matrix classes #include "mpspecfun.h" … | |
can anybody help me?currently i had wrote a coding for trash recycle system.to make thing more interesting,I wish to add simulation in that coding,however,I failed to do it,since my visual C++ is just still basic only.Hope U all can lend me a hand,please.thanks | |
Im trying to assign a decimal value of 1 to a variable if a check box is checked but I having trouble getting it to work. Here is my code: decimal nitrodsgn; decimal lnitro; decimal unitro; if (nitrogenLowerCheckBox.Checked) lnitro = 1; if (nitrogenUpperCheckBox.Checked) unitro = 1; nitrodsgn = (lnitro + … | |
Is there a method I can grab parent/grandparent nodes? The examples I have found appear to use only xpath statements to select nodes. Some of my failed attempts: /table/tr/td/b/font[self::text()="Nohup Files"] /table/descendant::font[self::text()="Nohup Files"] <table> <tr> <td><b><font>Nohup Files</font></b></td> </tr> </table> | |
I want to get the table node where its decendent node="Nohup Files". What I have so far is table/descendant::font[self::text()="Nohup Files"] table/tr/td/b/font[self::text()="Nohup Files"] but neither works. <table> <tr> <td><b><font>Nohup Files</font></b></td> </tr> </table> | |
I am writing a script (a full-fledged program, actually) in PYTHON (version 2.5; the current version is 3.0 but there are some performance problems -- 3.0 is slower than 2.5; go figure). The program allows a user to open a file in WORD. I have tested this program on an … ![]() | |
I have a perl assignment I have a question about. I have to take a text file (gettysburgh.txt) and I have to alter it. I think my code is correct but when I run the program it says no such file exists. The file is saved on my computer so … | |
Hello everyone! I can`t find a solution to the following problem in SQL Server Reporting Services 2005. I created a table which has multiple columns. It can happen, that some columns have the same values for multiple rows, only the most right column has different values. For example Column 1 … | |
Hello everybody, i need a polygon formula to draw one. I want to make a function that will draw a polygon , depending on how many vertex's it has. I'm not good at math so i can't figure it out how to do it. Though, i do understand that it … | |
Hey guys, I'm making a program that takes 3 sets of coordinates from a user to make a triangle. It then calculates the length of each side, the perimeter of the triangle, the area of the triangle, and the 3 angles. I have it all coded, except for the area … | |
I am using SQL Server Express 2005 as my Database and programming in C# 2005. In one of my Table "Results" I have a field named "ResultDate" of DateTime data type. In my form I have a DateTimePicker. I want to save only one record for a particular date, hence … | |
Hi Friends... i have searched google and this forum and etc, but i didn't get the answer to my question.. i want to use the CRYSTAL Report template, i have C# 2008, but in Add Items there is no template of Crystal Report.. so please tell me what should i … | |
I was given this .h file to implement with a cpp file. the directions say to add the definitions of the functions to overload the operators +=, which implements the same operation as the unionSet(monthsSet &B) function; -=, which implements the same operation as the differenceSet(monthsSet &B) function; ==, which … | |
Hi, all i have big assignment and don't have any compiler problem just have runtime bug--this make more headache. Here is the driver; [code=cplusplus] int main{ int * values2 = new int [ARRAY_SIZE * 2]; values2[ARRAY_SIZE * 2 - 2] = 8; values2[ARRAY_SIZE * 2 - 1] = 5; stack.pop … | |
i need to make a program that will identify the values of ABCDE that will result to EDCBA if you will multiply it with 4. looks like this: ABCDE x 4 = EDCBA i already have the values, it's 21978 x 4 = 87912 but i dont know how to … | |
Hello all, I played a game a few years ago that said if you didn't click on adds within a week you character would retire. There was a way to get your character back. I thought it was a good idea. I am a noob to php and i want … | |
Hi everybody, i am new to java and trying to develop a bit of an app i have created the first page, dynamicall filled a dropdown box all is fine i press the submit button and i get the error below: java.sql.SQLException: Parameter index out of range (1 > number … | |
Hello, a bit new to python here and would appreciate some help. I am writing a simple encoder to a raw_input(turn to numerical ascii and then applying some numbers to it). I was able to get the encoding right but when i try to do a outfile only the first … | |
I am looking for some pointers on how to format float numbers in a numpy array. This code selects lines from an array, and I want the output to look better so I can import into excel. infile looks like this: 1074 CL 006 2004 A8LGPUYE 10 TY 2 S0111P … | |
hello every one just want to know tips for how design maps like in the following web site [url]http://www.findaproperty.com/[/url] thanks in advance | |
Hi, I wish to embed an existing executable file within my executable and execute it. I am using Visual C++. Is there a way to do this ? Any reference or idea will be greatly appreciated. Thanks | |
Hi, i am trying to make an algorithm that will read the nodes of a graph. Then i should find the shortest path that i have to follow in order to pass from all the nodes. I am trying to make it so the algorithm will calculate every possible path … | |
Hi i m developing jsp application. In my system the screen resolution s 1024*768 pixels.It will shows the web page properly.While viewing the same page in my friends room his system resolution s 800*600 pixels it will be of in different form of shape and nature.How to make the page … | |
i want to connect asp.net 2005 with access . now i need for the code do do this connection | |
I have the following code, which reads from the .csv file and simply displays the output as whatever is being read from the .csv file...(which is test1.csv in the test1.zip attached with this post) //class to read CSV file : import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; public class readCSV { … | |
I have a form that has a table adapter for a table called costing. Im not using any of the items in this table in any textboxes etc.. on the form but I would like to use them in calculations that will give results to put in text boxes on … | |
Hey all, I have this problem that I can't work out why it is doing it. I've got a client - server program. The client sends an request to the Server, which in returns it queries an access database and save the output as a file. Which it will then … | |
How to toggle check boxes using JavaScript in Linux? I was able to do the same in Windows with the below code.... [code] function toggle_checkboxes(id) { if (!document.getElementById){ return; } if (!document.getElementsByTagName){ return; } var inputs = document.getElementById(id).getElementsByTagName("input"); for(var x=0; x < inputs.length; x++) { if (inputs[x].type == 'checkbox'){ inputs[x].checked … | |
Hi, first of all Hi to all members. i have a shopping portal in which we data coming from different merchant on web of there products in CSV format. the CSV of the product come in standard Structure from all the merchant. we get these CSV at same time schedule … | |
Hi folks, I’m planning on building a site somewhat similar to a web hosting directory and was hoping to get some input/advice on the database design from all you coding gurus :P I’d like to have two different types of users: 1) hosts 2) normal users Because of the this, … | |
[ICODE] import javax.swing.*; public class Tokenize{ public static String s[] = new String[100]; public static void main (String args[]){ String ask = JOptionPane.showInputDialog("Enter:"); isAsk(ask); } public static void isAsk(String ask){ StringTokenizer st = new StringTokenizer(ask," ",false); int input = Integer.parseInt(st.nextToken()); if(input<=10&&input>=0){ System.out.println(input); } } } [/ICODE] Here is the sample: … | |
Hi, I'm having the problem with this code, gives me "wrong datatype for second argument" error here is the code: [code]<? $page_to_show = 'second.php'; // array of days and hours $working_time = array( 1=>array(21,22,23,0,1),//monday hours 2=>array(21,22,23,0,1),//tuesday hours 3=>array(21,22,23,0,1),//and so on 4=>array(21,22,23,0,1), 5=>array(21,22,23,0,1), 6=>array(21,22,23,0,1), 7=>array(11,12,13,14,21,22,23,0,1), ); if (in_array(date('H')+1,$working_time[date('N')])) { [COLOR=red][B]<-- error … | |
Hello every one, i am new here so i would appreciate any help wit this. i am trying to call a url using javascript in an html select statement as follows; echo "<select>"; for ($i = 0; $i < $pages; $i++) { ?> <option value='' onClick='javascript:window.location.href= "index.php?option=<?php echo $option; ?>&task=view&limit=<?php … | |
Hello reader(s), In table1 i have 3 columns named: emp_id, month, year. First i'm inserting emp_id from a recordset with validation from a text box. Problem is: In the same row i need to insert data of month and year column from individual text box. Code should like: insert into … | |
Hello reader(s), Here is my code: [code] Private Sub Combo1_Click() Dim r conName.Provider = "Microsoft.Jet.OLEDB.4.0" conName.ConnectionString = App.Path & "\rosterdb.mdb" conName.CursorLocation = adUseClient conName.Open rsid.Open "select * from DayWiseRoster", conName, adOpenDynamic, adLockOptimistic ' in below loop i got the problem. it prompts "loop without do" Do While Not rsid.EOF If … | |
Traceback (most recent call last): File "...\Hello Python\src\main\__init__.py", line 7, in <module> redBench.accomodate(harold) [B]TypeError: unbound method accomodate() must be called with bench instance as first argument (got man instance instead)[/B] Here is the code: [I]__init__py[/I] [CODE]import man_cl import bench_cl harold = man_cl.man("harold") redBench = bench_cl.bench [B]redBench.accomodate(harold)[/B][/CODE] [I]man_cl.py[/I] [CODE]class man: def … | |
Hello All. Can someone please help me? I have been at this code for two weeks. I am a newbie at creating the following code in VB6. I want to open a database (SQL), read from the data tables, and write the data into an existing excel spreadsheet cell by … | |
I have a text box designTB and a double variable totaldsgn. I cannot create the following equation because the designTB is a string and totaldsgn is a double designTB.Text = totaldsgn I have tried this and it still does not work designTB.Text = totaldsgn.tostring Any suggestions? Is there a way … | |
I have to find the sum of the prime numbers below 2million so here is the program that i have written. [code=c++] #include <iostream> using namespace std; bool is_prime(int); int total=0; int main() { int num=2000000; for(int x=1;x<=(num);x++) { if(is_prime(x)==true) { total+=x; cout<< total<<"\n"; } } cout<< total; return 0; … | |
I couldn't help but notice that everytime I create a window or control with Win32, the text on the window looks jagged, as though it isn't being 'clear-typed' or something. Does anybody know how I can get the text to appear normal? | |
Hi, I m trying to automate Excel thru C#.net, having vs2005 and Excel 2003. when i deployed the s/w in a different m/c. It throws me the following Error message. "This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to … | |
hi, i maintain the information in two data tables. i like to do intersect (ie common between two tables) between two tables. [B]any direct method is present.[/B] currently i planned to travel two the table and find the common thing (ie combination AB,AC,BC like wise so its create more complex). … | |
Good day.! Im really sick of thinking every night and day on how to get the sum of all the value in such field. Assuming that ive already have a recorset which is filtered with a username "john", when john views his account, i want to sum up all the … | |
Hi I've recently started studying cURL and am having problem with the following code that i've written, [CODE]<?php include("LIB_parse.php"); # Include parse library include("LIB_http.php"); # Include cURL library $web_page = http_get($target="http://rapidshare-search-engine.com/index-s_submit=Search&sformval=1&s_type=0&what=1&s=billu&start=0.html", $referer="http://rapidshare-search-engine.com/"); $meta_tag_array = parse_array($web_page['FILE'], "href=", ">"); for($xx=0; $xx<count($meta_tag_array); $xx++) { $tag= return_between($meta_tag_array[$xx],"href=\"","\">",EXL)."\n"; ?> <a href=<?php echo $tag ?> >hh</a> … | |
Hi I am having a problem can't seem to get my script working it was working fine with just one file before without the for and $x statements I have added can anyone see why it isn't working please ? html [code] <form name="iapply3" method="post" action="ionline4.php"> <input type="hidden" name="MAX_FILE_SIZE" value="300000" … | |
Hi, I want to generate Candidate ID automatically in C# at the time of creation of user a/c or training id as wat is included in my project...let anyone know me the source code of it... |
The End.