64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for eng hassan

i want the charcter i display in the grid to move upwards when i press 'w' & downwards when i press's' & right when in press'd' & left when i press 'a',,,,i have written a code that doesnt work can anyone help me to find out what is the wrong …

Member Avatar for eng hassan
0
116
Member Avatar for zachattack05

I have a timer that runs a SQL query every 30 seconds to retrieve updated information. Unfortunately every time the query runs the vertical scroll bar resets to the top most part of the form. I tried [CODE=c#] int scrollPosition = this.VerticalScroll.Value; [/CODE] at the beginning of the timer code …

Member Avatar for zachattack05
0
4K
Member Avatar for ajwei810192

Hi, I have a code snippet here as in the following: [CODE] if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { $day_query ="start_time.day='12345' AND end_time.day='12345'"; } if(preg_match("Sat/i", $keywords[$i])) { $day_query = "start_time.Sat_route != 'NULL' AND end_time.Sat_route != 'NULL'"; } else { echo $keywords[i] . " is not a term that exists in the database. Make sure …

Member Avatar for MVied
0
86
Member Avatar for ms_sws

I have a table that looks like: [CODE] <table id="mytable" border="2" width="640px"> <tr> <td></td> <td><b>Col 1</b></td> <td><b>Col 2</b></td> <td><b>Col 3</b></td> <td><b>Col 4</b></td> <td><b>Col 5</b></td> <td><b>Col 6</b></td> <td><b>Col 7</b></td> </table> [/CODE] and a function to add a row and cells in the row that looks like: [CODE] function addRow() { //add …

Member Avatar for ms_sws
0
715
Member Avatar for Peacer

This code is for a friend's WinMo application, but the problem is when he calls a method it resets all of the array's values to 0, but it isn't the code within the method that does it but the act of calling the method. double[] enPosX = { 0, 0, …

Member Avatar for nick.crane
0
186
Member Avatar for MrBlack

[CODE] int i=5; i.ToString(); [/CODE] AND [CODE] int i=5; Object obj=i; obj.ToString(); [/CODE] I see this code in a c# book but i didnt understand this code, i got the meaning of boxing that mean Boxing allows value types to be implicitly treated like objects, plz explain those 2 code …

Member Avatar for MrBlack
0
149
Member Avatar for navaidstech

I don't recall ever having trouble using a similar procedure in the past but for some reason this one is giving me tons of trouble. Everytime it gets executed, it fires "Object doesn't support this property or method" error and I just can't understand why. Here is the snippet [CODE]SelectedEntry …

Member Avatar for navaidstech
0
1K
Member Avatar for sdhawan

hi guys i am trying to fill datagrid from database.I using the following code.Can anyone tell me what am i doing wrong. [code] public Form1() { InitializeComponent(); richTextBox1.Text = "Word: I \nDefinition:"; richTextBox3.Text = "Word: I \nDefinition:"; label2.Text = "Hindi"; dateTimePicker1.Visible = false; SqlDataAdapter dtadp = new SqlDataAdapter(); DataTable dtbl …

Member Avatar for sdhawan
0
94
Member Avatar for sdhawan

Hi Guys, I need your help with calendar.I want to know how can i popup calendar when i hit a button(I am using visual studio with c#) and look up that dtae in database. Thanks

Member Avatar for nick.crane
0
53
Member Avatar for yakshasa

Can anyone please tell me why this returns records in Access SQL pane but not from VB6 using ADO? SELECT LCD.*, LCS.*, LS.*, LMM.*, LPS.si_ElementNumber FROM ((TableLOANContractualDynamic LCD INNER JOIN TableLOANLoanStatic LS ON (LCD.sv_LoanNumber = LS.sv_LoanNumber) AND (LCD.sv_CoNumber = LS.sv_CoNumber)) INNER JOIN TableLOANLoanContractualStatic LCS ON (LCD.sv_LoanNumber = LCS.sv_LoanNumber) AND (LCD.sv_CoNumber …

Member Avatar for yakshasa
0
117
Member Avatar for spacepilot5000

Data entered in textboxes is not getting updated in database. In debug mode I see that textbox1 and textbox2 in ItemUpdating event contain the same values as they had before calling ItemUpdating. Here's my listview control: [CODE]<asp:ListView ID="ListView1" runat="server" onitemediting="ListView1_ItemEditing" onitemupdating="ListView1_ItemUpdating" oniteminserting="ListView1_ItemInserting"> //LayoutTemplate removed <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%#Eval("id")%>'></asp:Label> <asp:Label …

Member Avatar for pippopboy
0
898
Member Avatar for iamcreasy

This class when, it is not integrated with the main program, shows the following error....and I have no idea what it is trying to say.. :( :( [code] #include "character.h" Character::Character(DrawEngine *de, int s_index, float x, float y, int lives, char up_key, char down_key, char left_key, char right_key) : Sprite(de, …

Member Avatar for iamcreasy
0
161
Member Avatar for SoulMazer

Okay, I am writing a script that might be impossible to fully explain in words. Therefore, I am going to come up with an example that shows the same problem, so please do not tell me to simply combine the scripts or anything, as I am unable to. Anyways, I …

Member Avatar for SoulMazer
0
125
Member Avatar for niths

hi all, i had a page where there are three text boxes.username,password,allocatedmemory. Now when i placed an invalid number in allocated memory after submit button click it wil display a popup as invalid.so after clicking ok button,i need the value present in allocated memory to be cleared and cursor should …

Member Avatar for Manuz
0
90
Member Avatar for niths

hi all, i am having a doubt.How can i round off 005 to 5 and 000007 to 7 like this if the user enters in textbox. please help me..

Member Avatar for rajarajan2017
0
91
Member Avatar for bsewell

Hi everyone, I'm trying to write some PHP code to update a user's password. It is not updating and I can't spot what's wrong with my query (I have echo'ed it to the screen). [CODE]$sql="UPDATE $tbl_name set 'password'='$new_password' WHERE 'user'=$user;"; $result=mysql_query($sql);[/CODE] SQL statement [QUOTE]UPDATE user set 'password'='2' WHERE 'user'=test;[/QUOTE] What's …

Member Avatar for urtrivedi
0
80
Member Avatar for auralaways

hi experts SELECT porh.segment1, CASE WHEN popr.action_code = 'APPROVE' AND prall.full_name <> 'Sudheer T. Paraputhra' AND grdpr.short_name < 'PS-10' THEN prall.full_name END directman_pr,[QUOTE]to get the dept.head[/QUOTE] porh.description, porl.line_num, CASE WHEN popr.action_code = 'APPROVE' AND prall.full_name <> 'Sudheer T. Paraputhra' AND grdpr.short_name < 'PS-10' AND poph.action_code = 'SUBMIT' THEN TO_NUMBER ( …

Member Avatar for auralaways
0
1K
Member Avatar for carrythe1

Hi, I have a form application that has a number of pictureboxes. As the program runs it changes the pictures in the boxes depending on buttons pressed on the form via a function 'updateGUI'. The program runs for a limited period and eventually i get an error: An unhandled exception …

Member Avatar for carrythe1
0
1K
Member Avatar for Boskor

I have one problem with php and mysql. I have 3 tables (Users, User_status and Analysis) and want to display users and profit in a php table order by profit. So I wrote this code: [CODE]$tipster = mysql_query("SELECT Analysis.Profit, Users.Username, User_status.id FROM Analysis, Users INNER JOIN User.status ON Users.User_status_name=User_status.user_status WHERE …

Member Avatar for Boskor
0
295
Member Avatar for laghaterohan

Hello, I store Date in my database ( in sqlserver 2008 my datatype for this field is Date) however when i display the date in front end (ASP.NET C#) i get Date along with Time 12:00 AM as a default time. I dont want Time to be displayed in my …

Member Avatar for dnanetwork
0
147
Member Avatar for blackmagic01021

hello, I have developed a file compression tool using zlib compression library. As the zlib use the deflate and inflate process, does the size of the file effect compression ratio? If it has effect, what is the reason? Thank you.

Member Avatar for jwenting
0
175
Member Avatar for jen5376

Im trying to make a program that generates all the verses of the song "The Twelve Days of Christmas" using recursion (its homework). Ive read what the book says several times, researched online, etc etc. Im not looking for anyone to do the homework for me...I just need some guidance. …

Member Avatar for jen5376
0
150
Member Avatar for leesho

[CODE]#include<iostream.h> //is used so it will display output to the user and that input can be read from the keyboard #include<iomanip.h> //is used so that the user can format input using namespace std; int main() { int qty1; cout << "Please enter the quantity of Televisions: "<<endl; cin >> qty1; …

Member Avatar for leesho
0
139
Member Avatar for keshav magge

I am trying to catalog mysql database items in a plone site using python. The function that catalogs the SQL query results takes 2 arguments. First is the item returned by the query (for example Select * from books would return many book objects) and second argument is the string …

Member Avatar for vegaseat
0
1K
Member Avatar for gcardonav

Hi guys: I wrote this simple code to read a series of numbers from a list and then do some simple aremathic with it. I am not certain where the error could be, I read the code upside down and still can understand where the error lies. Any help would …

Member Avatar for gcardonav
0
139
Member Avatar for sblass92

Goal is to create a simple class that can be used for GUI buttons. My question is how can I define a function variable, and then when constructing a 'button' define which function should be called when clicked. This obviously isn't right, but just to get the idea: [CODE] class …

Member Avatar for Aranarth
0
160
Member Avatar for Ral78

I'm working on a program that will get a list of words from the user and rearrange it in alphabetical order. So far it works but I think it may have some memory issues because I was testing an alternative way of asking the user how many arrays will be …

Member Avatar for Ral78
0
150
Member Avatar for Kanoisa

Heya Thanks for taking the time to look at this, i would like some people to review my curent project which is written in c++ using visual studio 2008. Although in VS08 it does not use anything that makes it dependant on it (i dont think) i just wanted to …

Member Avatar for Kanoisa
0
170
Member Avatar for JOSheaIV

Okay so I have a datagrid view I am trying to build (here is the code so far) [CODE] public partial class employeeAlterForm4 : Form { static readInFileDel2 readInFileCall = new readInFileDel2(readInFileClass2.readInFile2); static Employee [] employeeTempArray; ToolTip tooltip1 = new ToolTip(); Panel panel1 = new Panel(); //-------------------------------------------------------------------------------------- public employeeAlterForm4() { …

Member Avatar for JOSheaIV
0
862
Member Avatar for BastienP

Dear Daniweb Community, Like I've previously explained on an other topic, I'm trying to delete lines of a csv file where the value of a column is equal to a fixed value. In other words I have to check if a specific column value for a line is equal to …

Member Avatar for d5e5
0
946
Member Avatar for UzuNarU

Hi I am trying to write a script that puts a Horizontal Line between MySQL query results but doesn't show up after the last row. eg: First Line ---------------- Second Line ---------------- Third Line I'm using PHP, MySQL and JavaScript AJAX. Don't know if that's relevant for this instance or …

Member Avatar for UzuNarU
0
328
Member Avatar for Kingcoder210

I need to know how can I use app path? I have a added Shockwave Flash Object control there in my program. However I have added AxShockwaveFlash1(swfla1) there in my form. I have written code there in Form_Load event so that swfla1 will get flash file(.swf) to play. Form_Load event …

Member Avatar for meffe
1
263
Member Avatar for jhonnatas

hello again!well...I'm developing a Content Management System and I have a form where the user write a text then i'll store this text in my database and i'll write it on a page using the "echo",I store the text with the html tags like: <p> blablabla</p>.but the user doesn't know …

Member Avatar for jhonnatas
0
130
Member Avatar for levraheit

the program asks the user to input the number of users who wants to play. i couldn't get the result of players.length individually. each players result should be number of correct answers from the number of questions asked. please help!. [CODE]import java.text.DecimalFormat; import java.util.Random; import javax.swing.*; public class coll { …

Member Avatar for levraheit
0
105
Member Avatar for spach79

Hi Guys, New to C# and I am struggling with storing a selected item from the array of comboboxes created at the runtime. Can you please help me [U]write the command within the [/U][U]button_Click event [/U]so that it calculates the sum of all selected items from the comboboxes created at …

Member Avatar for finito
0
231
Member Avatar for leesho

i have an assignment due for my c++ class where we have to input from the keyboard the quantity and input from the keyboard the stock price. so that it outputs as: Stock Item Quantity Unit Price Total Value ---------------------------------------------- Television 5 368.00 1840.00 Video Recorder 8 268.00 2144.00 Camera …

Member Avatar for finito
0
169
Member Avatar for sdhawan

hi, i have a rich text box in my application and a save button.Can anyone tell me how to send that text from rich text box to database .Thanks

Member Avatar for sdhawan
0
93
Member Avatar for jellybeannn

Can someone please help me in creating an array, I've got a DataTable with 270months columns so I've used a forloop for that. My array has to be the same as C158_Calc but only for 73months. At the moment the array is returnig each element as 0. C158_Calc values are …

Member Avatar for Teme64
0
101
Member Avatar for bsewell

Hi everyone, basicly I have a CSV file which uses ^ as a delimiter. I have a textarea which is populated by the contents of the CSV file, and after editing it the user is redirected to the edit page. For some reason, everytime I save the file there is …

Member Avatar for bsewell
0
148
Member Avatar for severman

hi all does anybody here knows a good safe way to work with sql stored function with zend framework? i can do so with prepared statement but i'm sure that there is safer way to do so... i'm using postgreSql but i don't think that there's any different. thanks!

Member Avatar for sourcebits
0
112
Member Avatar for Monster Killer

I am trying to make a function that gets the name of a user from their user id. The function needs to search a database for the matching id. However, when I try the function i get the following error: [B]Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given …

Member Avatar for Monster Killer
0
1K
Member Avatar for DaveTran

I would like to automatically call a base class method for a class that inherits from the base class. From the extent of my limited knowledge, I know I can do this using base.Method(). [CODE] public abstract class Foo { private int a; private float b; public virtual void Init() …

Member Avatar for DaveTran
0
127
Member Avatar for veledrom

Hi, I can't find the missing thing in this code. "05-MAY-08" is in the table but, [inlinecode]( CURSOR_TARIH%FOUND )[/inlinecode] never returns TRUE. When i do manuel query it is ok. Thanks [CODE] create or replace PROCEDURE A_SIPARIS_EKLE_SP IS CURSOR CURSOR_TARIH IS SELECT TARIH FROM A_ACCOUNT WHERE TARIH = to_date('05-MAY-08', 'DD-MM-YY'); …

Member Avatar for babyDBA
0
198
Member Avatar for Abdel_eid

Dear friends i just need a web link or an ebook that contains all java built in functions and classes with it's return types and parameters. thanks in advance

Member Avatar for Abdel_eid
0
88
Member Avatar for larsen182

Hi guys:-) I have no experience in programming, and i realise that asking for someone to write an entire programme for me might be a stretch, but unfortunately i havent got any mates that are good at programming. I think the program i need is fairly simple once you know …

Member Avatar for larsen182
0
219
Member Avatar for yasemin

Hi, I have a question regarding a program I'm writing in C. I have a few variables which I would like to assign a random number to. However the sum of all the numbers I assign should equal 1. I have not been able to find a way to do …

Member Avatar for finito
0
99
Member Avatar for staufa

Hi im trying to connect to my database but i dont know why i cant load my jdbc driver: -I've saved the jar file together with the other java files in the same folder called "a" -I used –classpath flag: Windows: "java -classpath .\mysql-connector-java-3.1.8-bin.jar;. LabDB4" but I dont know if …

Member Avatar for peter_budo
0
226
Member Avatar for vanalex

Hello everybody! I need to move the get pointer of a text file at the beginning so i wrote in my program the following line (knowing that in a binary file really works): [code=c]ifstream in; in.open("data.txt", ios::in); in.seekg(0, ios_base::beg); [/code] but...in my text file doesn't really work. Is there a …

Member Avatar for vanalex
0
226
Member Avatar for vinsbg

pls help me with this one..everything is ok but when i add student and faculty number and then try to list them says "No added students'...:@ This is: main.cpp [code] #include <iostream> #include "Student.h" #include "Course.h" using namespace std; list<CStudent*> students; list<CCourse*> courses; CCourse* findCourse(string name) { CCourse* course = …

Member Avatar for vinsbg
0
123
Member Avatar for Sinha's

Hello experts, I have a web application in ASP.Net (C#) and SQL Server 2005. In the application the end user can enter the customer record. When one end user use the application and enter customer record it works fine. But whenever more then one end user try to enter record …

Member Avatar for kvprajapati
0
279

The End.