199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oldnewbee

First I run a simple query to get the max ID from the table, which returns a number 10284. To which I would like to add a randomly generated number. So I get a number like '2' and it adds it and I get 10287 - which is INCORRECT! I …

Member Avatar for grungy coder
0
110
Member Avatar for RAB123

[b] Split from - [url]http://www.daniweb.com/forums/thread62371.html[/url] [/b] [QUOTE=ra18279;282758]thanks for the info[/QUOTE] Hello... i am also facing same issue. Please give me answer. Thanks in advance

Member Avatar for kvprajapati
0
148
Member Avatar for timetex

As a novice JSP (and non-programmer!) I've bee doing some customisation to a browsers driven application which provides a users with CTI functionality on their desktop. My task was to create a custom "tab" on their page, which gave a series of checkboxes, with an "Apply" button. The purpose of …

Member Avatar for jwenting
0
2K
Member Avatar for kdcorp87

what is the difference between httppathrequest and server.mappath. i mean r they return different path ? i uploading file use httppahrequest and it works fine in my pc iis7, but when i run in server it didnt work. but server.mappath work in both

Member Avatar for kvprajapati
0
82
Member Avatar for Nfurman

Hello! How can I insert into DB date using DetailsView. I have variable: [CODE] DateTime now=DateTime.UtcNow; [/CODE] I need to send it's value into the database automatically when an user inserts new record in my DetailsView. The code: [CODE] <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False" CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource3" ForeColor="#333333" GridLines="None" Height="50px" …

Member Avatar for kvprajapati
0
208
Member Avatar for lawal2000

I need help on how a function created on Form1 can be called from Form2. E,g, Public Function RemoteCalled() A=X"2+2 End Function 'Then from Form 2, Call RemoteCalled I use VB6. Thanks for your quick response

Member Avatar for abu taher
0
110
Member Avatar for somaih

hi, i want to use DataGridView to display the result from 3 textBoxes ? is it possible to do that ? Please help

Member Avatar for kvprajapati
0
117
Member Avatar for darcee

ive created a function for generating username, password, email to log in on a website but the problem is i want to use all account one at a time for example num|username|email|passwd 1|username1|email@email1.com|password1 2|username2|email@email2.com|password2 3|username3|email@email3.com|password3 4|username4|email@email4.com|password4 5|username5|email@email5.com|password5 log in 1st acct ... do something then logout... then log in 2nd …

Member Avatar for kvprajapati
0
156
Member Avatar for lardshow

Hi all need a little help please. i'm using VB (but very very rusty) and i need to write a simple macro to cut and paste in excel. the macro so far is: [CODE]Sub populate() ' ' populate Macro ' Macro recorded 09/02/2010 by ' ' 'select correct cell Range("D6").Select …

Member Avatar for lardshow
0
98
Member Avatar for bluefish601

hye...currently i am developing stego application for my final project.. and i will using vb6.. what i need to know is the code for manipulating the bit because as u all knows that LSB insertion plays with all the bits stuff.. sorry ..my english are too bad..hope u all can …

Member Avatar for pramod.T.C
0
188
Member Avatar for Zaelis

Ive been working on a Game of Life simulator in C for my programming class. Essentially, it needs to take a single line of input and print out a nice grid of x's and o's (representing live cells and dead cells, respectively). I need to input the grid size, the …

Member Avatar for erantivanisha
0
144
Member Avatar for saracooper

Hello, I am working with variable arguments and I have no problem using them with Integer, Float or char arrays. But when I try to use String arrays, it is a multidimensional array and I am not sure ... I am calling a function with variable arguments, one of which …

Member Avatar for saracooper
0
2K
Member Avatar for pankaj.garg

Hi, i am developing a program which will store live data (data read from some device every second) into MSAccess database...now i want that data to be available over LAN... i.e. my main computer will be connected to device and i want other computers to read data from the database …

Member Avatar for kinwang2009
0
268
Member Avatar for chandrag

hi, I am new to perl. actually, i'm using perl with SOAP::Lite to access a web server. I wrote some code in a notepad and saved it in c:/perl/eg. by typing 'perl filename.txt' after changing the directory into c/perl/eg> in command prompt, i am getting the result what i want. …

Member Avatar for dangidipu
0
933
Member Avatar for houlahan

could anyone help me i have been trying to do this for a good 2 hours now and still can't get it to work :( i have created this class diagram for the server side of my project and i can't get the inheritance right i need to be able …

Member Avatar for JamesCherrill
0
148
Member Avatar for mybluehair

I am just being introduced into the allegro game library, and I'm making a simple program. My problem is confusing me horribly. I'm using the textout_ex code, but what I want to do is display 2 pieces of info in one textout function. Like: textout_ex(screen, font, "hello" [B][U]AND[/U][/B] MyVariable , …

Member Avatar for WaltP
0
135
Member Avatar for tgifgemini

Hello everyone, I have an exce spreadsheet called "ProjectStatus.xls" in my local folder "C:\ProjectStatus.xls". I need to send it as an attachment to someone and I am using these codes: [code] Set OutlookApp = CreateObject("Outlook.Application") Set OutlookMail = OutlookApp.CreateItem(Outlookmailitem) OutlookMail.To = "giftxtian@yahoo.com" OutlookMail.Subject = "Project Status" OutlookMail.Body = "This is …

Member Avatar for suba_wen
0
128
Member Avatar for PuQimX

[code]import java.util.*; public class array1 { public static void main(String[]args) { int[] value = new int[1000]; Scanner keyboard = new Scanner(System.in); for (int i = 0; value[i]!= -999 && i < 999; i++) { System.out.print("Enter number " + (i + 1) + ": "); value[i] = keyboard.nextInt(); if(value[i] == -999) …

Member Avatar for ainct
0
143
Member Avatar for ausmaya

Hi, This is the code for form validation to check whether the username has six characters.i'm getting error.In form element i have added action="registration.aspx" i think it is for validaiton in server.. wat is the purpose of it??? can anyone pls suggest free links for webdeveloping ebooks using javascript?. how …

Member Avatar for parry_kulk
0
182
Member Avatar for computerfreak.7

so im trying to make a game for school that i have to have done by friday at the max my source for the main class is [CODE]//shooter game //main class import javax.swing.*; //frame import java.awt.*; //color import java.util.*; import java.awt.event.*; public class Shooter extends JFrame implements KeyListener{ Image img; …

Member Avatar for musthafa.aj
0
147
Member Avatar for rayarman

Hi, I have the following HTML code: [code] <form> <label for="searchtxt">Find a Question...</label> <input type="text" name="searchtxt" id="searchtxt" maxlength="200" size="92" /> <input type="submit" id="searchsbmt" name="searchsbmt" value="Search" onclick="return getquestions(0,5);" /> </form> [/code] the function getquestions is sending some variables via ajax and returning to populate a div. when it finishes, it returns …

Member Avatar for Graphix
0
334
Member Avatar for SgtMe

Hi all. :) I'm having trouble with pygame, images and transparency. Lets say I have an image...a circle to keep it simple (for example only). What I want is to be able to draw the image, but with only the circle showing (ie. not a white box around it). Oh …

Member Avatar for SgtMe
0
336
Member Avatar for kuteinheart

Hi ppl, I have a form with a drop down box and a calendar picker. I want to check if both these fields have been filled to proceed to the next page. [CODE]echo "<select name=Project value =' '>ProjectName</option>"; echo "<option>Select Project</option>"; while ($row=mysql_fetch_array($result)) { echo "<OPTION VALUE=$row[Project_Id]>$row[ProjectName]</option>"; } echo"</select>"; ?></td> …

Member Avatar for kuteinheart
0
105
Member Avatar for loulule

I need visual basic code for inputing name and address to 2 separate text box then display in address label....

Member Avatar for abhi.navale
0
165
Member Avatar for cool_aj

Please help me correcting my program.The question requires me to offer a repeating MENU with 3 choices. 1. Displays all students 2. choose one by entering the ID and also making changes to it. 3.exit. My error so far is "cannot convert to `int*' for argument `1' to `in".I don't …

Member Avatar for jonsca
0
1K
Member Avatar for qariella

This is what Im gonna do: In a class called UsefulMethods : a) Write a method public static int maxOfTwo( int tal1, int tal2) {} . As you can see this method will accept two integers as parameters and returns the larger of this two. [B]This one I rly need …

Member Avatar for qariella
0
111
Member Avatar for sujithy15

java is robust and secure what is meant by robust and why is java robust? why is java called secure? can any one please help me with these?

Member Avatar for musthafa.aj
0
122
Member Avatar for truthuntold

I am running into problem on getting this program done. Its suppose to quiz you on your 2 powers ie(2^2 = 4, 2^22 = 2m, 2^46 = 32t) I've programmed in python for a couple years but a lot of the tricks python lets us have C++ doesn't or I …

Member Avatar for WaltP
0
100
Member Avatar for justted

Hello everyone, I am trying to istall this script which has no install instructions. However, in the Config document it hs the following line whichit says to edit [code] $items_path = "/var/www/vhosts/cyberpetcity.com/httpdocs/images"; //EDIT $Z = ""; [/code] I thought it may have been the full URL that I was supose …

Member Avatar for mblizman
0
137
Member Avatar for sindhujavenkat

How can I split a widget and add some contents on it in PyQt4? Dear Python experts!!! Could you refer me some books for PyQt in which the documentation would be clear(other than Dive into python and Rapid GUI development in python)?

Member Avatar for sindhujavenkat
0
180
Member Avatar for Nick Evan

[B]Background[/B] I was looking for a simple control in wxWidgets which I could use to plot out [i]some value[/i] against time, but I found that apparently I was the only one that needed that kind of graph. (so I don't know why I'm posting it... but anyway). I decided to …

Member Avatar for callmegood
0
919
Member Avatar for Cyberhacker

Hello my name is roman I have this project to do that involves the following: I need to take a text document full of numbers and output the lowest of those numbers and the highest of those numbers but they first have to be put into an array then outputted... …

Member Avatar for WaltP
0
125
Member Avatar for harry010

Hi, I'm using WebSphere WebFacing tool to convert an old 5250 application and I am getting this error when I try to convert a particular application. I've tried increasing the java heap but this does not make any difference. Would anyone know how to allocate more memory within websphere? Thanks. …

Member Avatar for harry010
0
205
Member Avatar for suncica2222

why do people define main() as int [B]and not void[/B]? and then write return 0; or return 1; or return -1; or return EXIT_SUCCESS; what is the point of this?

Member Avatar for Narue
0
85
Member Avatar for sutt0n

Okay, so you know whenever you send an e-mail from your website to either test something or notify you, you sometimes get that signature that says "scanned by blah blah". Like in Gmail, it says "scanned by blah blah blah". I was wondering if there was a way to remove …

Member Avatar for cwarn23
0
161
Member Avatar for Vhalor

Hey guys, been to the forum a couple times but never posted. Thought I'd give it a try. So my problem is basically this. I'm to create a program which reads a line in this form "-6 1 2 3 6" "-10 1 2 5 10" -6 being a perfect …

Member Avatar for Narue
0
124
Member Avatar for wwsoft

I'm making a framework for what will eventually be a game. All objects in game are derived from game_object. I store everything in vectors; The _objects_ vector contains pointers to objects. The problem is when I call update the default update() function from game object is ran instead of the …

Member Avatar for dusktreader
0
102
Member Avatar for Soulcito

Hi! First of all, sorry for my english. I have a function that edit some data from every record in a table. I'm using a for to make it work. The problem is that in every loop it asks me to set the table in edit mode ([CODE]table1.edit[/CODE]). That makes …

Member Avatar for cepukom
0
545
Member Avatar for drewpark88

Hey Guys, It's me again....I thought everything would work but when I tried making a donation on my donation.php form I received the following error in my process_transaction.php file: Here is the error: Parse error: syntax error, unexpected $end in \\nawinfs02\home\users\web\b885\rh.mysite\orderform\process_transaction.php on line 224 My webhost is lame and does …

Member Avatar for drewpark88
0
102
Member Avatar for gepo

[CODE]class monomial { public: monomial(){}; monomial(string vars); // Assignment operator [COLOR="Red"]void operator= (monomial & p);[/COLOR] monomial operator* ( monomial &p); monomial operator/ (monomial &p); bool operator== ( monomial &p) ; bool operator> ( monomial &p) ; bool operator< ( monomial &p) ; void print(); public: list<unsigned int> var;//variables separated by …

Member Avatar for gepo
0
108
Member Avatar for totalwar235

i am having a few errors compiling a code in visual C++ with my jumble word code, can anyone help? [CODE]//word jumble #include <iostream> #include <string.h> #include <cstdlib> #include <ctime> using namspace std; int main() { enum fields{WORD, HINT, NUM_FIELDS}; const int NUM_WORDS = 5; const string WORDS[NUM_WORDS][NUM_FIELDS] = { …

Member Avatar for totalwar235
0
321
Member Avatar for xcarbonx

hello, i just had a very simple question about float, so i am not going to post the full coding, only what matters in this instance. my output of program shows the computed number as 4, instead of 4.00, even though it is declared as float Here is the example: …

Member Avatar for xcarbonx
0
96
Member Avatar for bd338

Hello everyone! If I try to Assemble the following with MASM, I get this error: Code: [CODE] .model small .stack .data message db "Hello world!", "$" .code main proc mov ax,seg message mov ds,ax mov ah,09 lea dx,message int 21h mov ax,4c00h int 21h main endp end main [/CODE] And …

Member Avatar for bd338
0
775
Member Avatar for flipjoebanana

Is there a way to hide assembly code when my C code references a library function that deals with memory? (Not showing 'asm' code)?

Member Avatar for gerard4143
0
133
Member Avatar for jdpjtp910

I have a program that is menu driven by functions. The program gathers inventory data from the user and then the user can add, change, display (by record #), or display all records. The code works great, BUT when I add records and go to edit them, it changes the …

Member Avatar for mitrmkar
0
125
Member Avatar for sepehr_sz

i have received this assignment that i need to complete by wednesday and i havent started. basically i have a .pl file with a movie database and i am required to answer the following. 1. COURSEWORK: There is a game that can be played whereby people try to work out …

Member Avatar for Nick Evan
0
164
Member Avatar for uniquereason

I am trying to create a program that compares two files that contain letters from A to E. Both files have 20 of them. Now im just stuck i feel that i could use if statements but i don't know how to go along with it. Any help will be …

Member Avatar for Nick Evan
0
182
Member Avatar for explorepython

hi all, In the example below [CODE]from PyQt4 import QtCore, QtGui class Ui_Dialog(QtGui.QDialog): def __init__(self,parent=None): QtGui.QDialog.__init__(self,parent) self.setObjectName("Dialog") self.resize(600, 500) self.model = QtGui.QDirModel() self.tree = QtGui.QTreeView() self.tree.setModel(self.model) print(self.model.flags(self.model.index("c:\Program Files"))) self.model.setFilter(QtCore.QDir.Dirs|QtCore.QDir.NoDotAndDotDot) self.tree.setSortingEnabled(True) self.tree.setRootIndex(self.model.index("c:\Program Files")) #self.tree.hideColumn(1) #self.tree.hideColumn(2) #self.tree.hideColumn(3) self.tree.setWindowTitle("Dir View") self.tree.resize(400, 480) self.tree.setColumnWidth(0,200) self.tree.show() QtCore.QObject.connect(self.tree, QtCore.SIGNAL("clicked(QModelIndex)"), self.test) QtCore.QMetaObject.connectSlotsByName(self) self.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8)) def …

0
215
Member Avatar for AlmaREY

[I]<<split>>[/I] so you did get your program to work then??? i am running into the same problem. i get this error \prob 3.cpp(15) : error C2447: '{' : missing function header (old-style formal list?) but my programs heading looks just like all i have seen and i cant find anything …

Member Avatar for Ancient Dragon
0
275
Member Avatar for ben_

This function will take a string and convert it into a folder/file friendly name. I use it in conjunction with url rewriting, deriving the filename from the title of an article.

Member Avatar for Ravenheart
0
136

The End.