199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kchadek

So the problem is to get two words from the user and then see if they cross and if they do type them out like the example: word1= lottery word2= boat Crosses would be: b lottery a t b o a lottery b o a lottery I am pretty lost, …

Member Avatar for Taywin
0
213
Member Avatar for George Jump

Hello - I have been searching to no avail for a clear and concise definition of VB6 Classes and Class Modules with perhaps some simple examples. Does anyone know where I might find this??? Thanks! George

Member Avatar for AndreRet
0
152
Member Avatar for vegaseat

The map() function applies a function to every member of a list. Here a list of numbers 32 to 255 is changed to a list of the corresponding ASCII characters. Then map() is used in a more complex application to combine the two lists to form a dictionary containing number:character …

Member Avatar for Gribouillis
0
439
Member Avatar for LianaN

Hi! So, my question is how could I compare two objects. The code is shown below. The problem is that the first "if" statement is always true, even if it should be false. For instance, let's say childHierarchy[i] and hierarchy[0] are equal to 'Contract'. In this case "if (childHierarchy[i].toString() != …

Member Avatar for Taywin
0
106
Member Avatar for jliao20

I have no idea how to start the interpreter for this java project. I need some hint on the LET statement in order to write other code such as ADD, MINUS, GOTO...etc Thanks [CODE]public abstract class Statement { // execute() takes a ProgramState and executes this statement, by making // …

Member Avatar for Taywin
0
258
Member Avatar for sharonig

Hi, I have an input element on a form. When I open a popup form and then close it, I try to put the focus back on my input element by using the focus() method. However, that fails and it doesn't get focus. When I press tab to get out …

Member Avatar for Taywin
0
89
Member Avatar for knan

I have a list of lists [CODE]x=[['a', 'b', 'c', 'd'], ['e', 'f'], ['g', 'h']][/CODE] I need the following output. [CODE]a-b a-c a-d b-c b-d c-d e-f g-h[/CODE] How can i do this? Can a regular expression be used here??

Member Avatar for Gribouillis
0
152
Member Avatar for digan

Hi, ive only started programming recently and as my second assignment i have to write a program that can convert uppercase letters to lowercase letters and visa-versa. i also have to make it stop when a full-stop is entered and count the number of times the program changed letter case. …

Member Avatar for digan
0
112
Member Avatar for TechSupportGeek

Hello world of DaniWeb, it's been months since I last visited this forum but here I am asking for your help again :) I've been developing a text editing application and my problem is that the RichTextBox control will "lose" all special formatting (like font, color etc.) when enabling WordWrap. …

Member Avatar for TechSupportGeek
0
205
Member Avatar for bejfake

Hi, I've got such class template: [CODE=c]template <class Type> class Stack{ private: struct Element{ Type value; Element *prev; } *end; public: Stack(){ end = NULL; } void push(Type value){ struct Element *element = new Element; element->value = value; element->prev = end; end = element; } Type pop(){ if(end != NULL){ …

Member Avatar for alwaysLearning0
0
3K
Member Avatar for swathys

hi, i'm getting error of [COLOR="Red"]data source object is invalid[/COLOR] when i try to load a transaction report from sql database. [COLOR="Red"]Error 4 Overload resolution failed because no accessible 'Fill' can be called with these arguments: 'Public Function Fill(startRecord As Integer, maxRecords As Integer, ParamArray dataTables() As System.Data.DataTable) As Integer': …

Member Avatar for swathys
0
909
Member Avatar for aminit

HellOoo : my questoin is like this , if I have a function [code] void hello(string hh){ hh=textbox1.text } [/code] if I want to take the value of hh from the function 'hello' , to use it in another function , it impossible to make this [code] void main() { …

Member Avatar for harrypalmerr
0
119
Member Avatar for outbackandy

[COLOR=#555555]Hello everyone! [/COLOR] [COLOR=#555555][COLOR=#555555]Any help would be much appreciated![/COLOR][/COLOR] [COLOR=#555555]My problem: [/COLOR] [COLOR=#555555]I want to break up a string into separate objects.[/COLOR] [COLOR=#555555]Scenario: [/COLOR] [COLOR=#555555]I am reading a txt file into my program and I want to[/COLOR] [COLOR=#555555]separate the String in to separate categories. [/COLOR] [COLOR=#555555]String line = "BATHROOM TOI …

Member Avatar for masijade
0
172
Member Avatar for sa.alavifar

i have a project in c# code with 3 leyer; and all of database code are in data leyer, which method is better? 1- send sql string statementto data base for select or update? 2 - using stored procedure? in databases with larg scale wich is better? pleas help me?!

Member Avatar for harrypalmerr
0
104
Member Avatar for fantasma

Greetings from Portugal to everyone. I'm building a project to a course in my university and i've stucked in some compiling error given by NetBeans and g++ in my dynamic array implementation. Glad if someone could give a hand to this. Here is the code [ICODE]#pragma once #include <iostream> #include …

Member Avatar for fantasma
0
123
Member Avatar for syd_master

when i run my code...this error come out [QUOTE]"data type mismatch in criteria expression"[/QUOTE] here my code: [CODE]Private Sub Text2_Change() TXT1 = "" TXT1 = "SELECT * FROM Profile WHERE sID =' " & Text2 & "'" If RS.State = 1 Then RS.Close End If RS.Open TXT1, Conn, adOpenKeyset, adLockOptimistic …

Member Avatar for AndreRet
0
328
Member Avatar for canterorist

hi! In php we use this [CODE]<a href="hello.php?a=1&b=2">hello</a>[/CODE] so that when we click, the $_get will catch the value of a and b. If i used asp.net what is the code to link for it?. I need your help, I'm new in using asp.net.

Member Avatar for canterorist
0
176
Member Avatar for chris5126

Hi, I have a machine with X-Fi Titanium sound card. Im getting the following errors when trying to compile the driver. [CODE] make make -C /lib/modules/2.6.9-89.0.23.ELsmp/build M=/root/XFiDrv_Linux_Public_US_1.00 make[1]: Entering directory `/usr/src/kernels/2.6.9-89.0.23.EL-smp- x86_64' CC [M] /root/XFiDrv_Linux_Public_US_1.00/xfi.o In file included from /root/XFiDrv_Linux_Public_US_1.00/xfi.c:17: /root/XFiDrv_Linux_Public_US_1.00/ctatc.h:22:34: linux/spinlock_types.h: No such file or directory make[2]: *** [/root/XFiDrv_Linux_Public_US_1.00/xfi.o] …

Member Avatar for chris5126
0
488
Member Avatar for sravi.pearl

haiii Do anyone know how to convert array like this ['26','18','20'] into [26 18 20] because i have to plot graph for these value, ['26','18','20] array is not allow me to do that ,i got ['26','18','20'] from database table with data type varchar....problem is i shouldnot change the datatype .... …

Member Avatar for TrustyTony
0
95
Member Avatar for fredrickprem

what is this common.php it is located in includes folder where the class files are located.I dont understand please help me i am new to php and it contains the following coading in it.Why we use it? [CODE]<?php ob_start(); session_start(); //$_SERVER['DOCUMENT_ROOT'] = "/home/gt5com/public_html"; if(!defined("_MAINSITEPATH_")) define("_MAINSITEPATH_",$_SERVER['DOCUMENT_ROOT']."/talent6/includes/"); if(!defined("EMAIL_LINEFEED")) define("EMAIL_LINEFEED",'CRLF'); if(!defined("EMAIL_TRANSPORT")) define("EMAIL_TRANSPORT",'mime'); if(!defined("CHARSET")) …

Member Avatar for fredrickprem
0
224
Member Avatar for novice20

[B]hi... I have a value, value=4501-E001 I am concerned about only the value before hyphen i.e., 4501 I need to check whether various values begin with 4501, followed by something, n am not concerned about "something" that follows. How can this splitting be done in python?[/B]

Member Avatar for Gribouillis
0
131
Member Avatar for sujimon

Hi, The website that I have been working on for sometime is about to be deployed now. However, after deployment the reports are not opening in one of the two machines that I have deployed. All other pages seem to be working fine except reports not opening with the error …

Member Avatar for sujimon
0
829
Member Avatar for swamiprasad

HI ... I m trying to make a form entry with input elements..I have an ADD button on the form besides a SUBMIT button..After the user enters the input fields & presses the ADD button, I want the form data to be displayed on the same form page. When the …

Member Avatar for VijayaKumar.S
0
306
Member Avatar for spideyprasad

I created a php page. this is my code. [CODE]$con=mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql = mysql_query("SELECT * FROM $tbl_name WHERE (Order = '" . $_POST['order'] . "')") or die(mysql_error());[/CODE] But its showing error like this You have an error in your SQL syntax; check the …

Member Avatar for monica singh
0
138
Member Avatar for Blastoise

Write a program that will ask for a password. If the password is entered correctly, a message should be displayed like “You may enter”; otherwise after 10 tries display a count down from 10 to 0 then a message that the hard drive is being wiped out should be displayed. …

Member Avatar for Eric Cute
0
147
Member Avatar for lifeworks

hi Ive been posed this problem. A friend does maintenance on a companies network, and would like to do it remotely. Currently, their IP changes every 24hrs and so he has to phone them to find their IP so that he can log in... He asked me to write him …

Member Avatar for monica singh
0
187
Member Avatar for oceantech

Hi all! I have a directory with multiple text files of data. I have been trying to develop a loop to read through all the files, eliminate the first 88 lines (text header) and create a new file with only the data values. I have been all to write the …

Member Avatar for griswolf
0
120
Member Avatar for Skillzilog

[CODE] Inherits System.Windows.Forms.Form Dim bill As New POS Dim mypath = Application.StartupPath & "\db1.accdb" Dim connection As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:\db1.accdb;Persist Security Info=False;") Dim cmd As OleDbCommand Dim cmdGetIdentity = New OleDbCommand() Dim sql2 As OleDbDataAdapter = New OleDbDataAdapter("Select * from customer", connection) Dim db1 As DataSet = New DataSet Dim …

Member Avatar for Skillzilog
0
112
Member Avatar for rcavezza

I'm using these libraries for an email application I'm building. [CODE=php]$storage = new Zend_Mail_Storage_Imap($imap); if (strpos($storage->getMessage($i),'chocolate') !== FALSE ) { //Move to chocolate folder here } [/CODE] Also, is there a way to put incoming emails from this sender to automatically go into the chocolate folder from now on? ...similar …

Member Avatar for rcavezza
0
323
Member Avatar for niths

hi all, In my page i had a highest education qualification section and 2nd Highest Qualification 1.In HIghest qualification i had course and Year of pass as dropdown fields 2 In 2nd Highest qualification i had course and Year of pass as dropdown fields same as highest qualification. Now i …

Member Avatar for fornandakishore
0
4K
Member Avatar for persianprez

I'm sure this is simple but here is what I need to do: I want to change a variable within the source url. Heres an example of what I'm trying to say: [CODE]<script type="text/javascript" src="url.com?lang=en&X=word1&;"></script>[/CODE] This works fine, but I want the variable X to be elsewhere, like this: [CODE]<script …

Member Avatar for persianprez
0
343
Member Avatar for iraqi4life

I have this bit of code: [CODE]case 1: case 3: case 5: case 7: case 8: case 10: case 12: day = 31;[/CODE] Does this mean the values 3,5,7,8,10,12 can only be day=31? How can I make it so only the Max value is 31? So it can equal 31 …

Member Avatar for Eric Cute
0
136
Member Avatar for Perry31

Hi friends, I've created program for getting the data members from the structure and pass those variable in a function dynamically. The structure will dynamically change and its members also changing.Now i need to rectify the memory leak problem in this.I declared maximum size of buffer is 30000 when i …

Member Avatar for Perry31
0
150
Member Avatar for swathys

hi, when i run my report its asking for database login id and p/word. i have make a connection before it and everything goes well but i'm not sure why its come out with the login asking for id and p/word. HELP !!1

Member Avatar for swathys
0
178
Member Avatar for UaBoy

I am making a program for my CS class. Is there a way, in python, to set more than one value to a variable? Am I thinking about this in the wrong way? I need to make a program that asks a bank account holder for their username. If that …

Member Avatar for TrustyTony
0
120
Member Avatar for yopirates

hey guys! onload function is working in window.open! but it is not working in .showmodaldialog [CODE]newwindow2=window.open('app.html','app','Width:700;Height:350; modal:true;'); newwindow2.onload=function() { alert("hello"); } [COLOR="Green"]This works [/COLOR] newwindow2=window.showModalDialog('app.html','app','dialogWidth:700px;dialogHeight:350px;dialogTop:200px; dialogLeft:200px;resizable=no;'); newwindow2.onload=function() { alert("hello"); } [COLOR="Red"]Not working [/COLOR] [/CODE]

Member Avatar for yopirates
0
953
Member Avatar for itslucky

Dear Friends, I am developing such a website where i have uploaded the ringtones for mobile phones, and i need to know that how can i play the ringtone in the [B]Asp .net C# pag[/B]e. before download user can [B]listen[/B] the ringtone and same action can done with Videos. Please …

Member Avatar for kvprajapati
0
195
Member Avatar for jimbob90

Here's my main [code=c++] int main () { int list1[3] = {5,5,6}; int num = 3; int result; int *arr = list1; int maxVar; int *maxVarHolder; maxVarHolder = &maxVar; result = sumarr(*arr, num, *maxVarHolder); return 0; } [/code] Here's the function header: [code=c++] int sumarr (int *arr, int size, int …

Member Avatar for mike_2000_17
0
232
Member Avatar for stud02

I have a working c file which count lines from a text file. Is there a function that filters out lines with comments(lines started with //)? So when I load in a text file with a c code, it only has to count the lines without comment.

Member Avatar for WaltP
0
133
Member Avatar for brendono978

Hey everybody, here's my assignment. "Program 69: String Pattern Matching – Naïve Approach Write a program that will prompt the user to enter a string of characters. There will be a maximum of 10 characters entered for the string. The program will then ask the user to enter lines of …

Member Avatar for brendono978
0
1K
Member Avatar for Lxyslckr

The Vehicle.java is the file that I am modifying. The second code is the testdriver. [CODE]public class Vehicle { String make; String model; int year; public Vehicle(String s1, String s2, int y) { if (y >= 1980 && y<= 2012) { year = y; } else { y = 2010; …

Member Avatar for haranaboy
0
433
Member Avatar for samarudge

Hey, So I have a function to generate a slug URL, all the generated URLs must match a .htaccess rewriterule allowing only alpha-numerics, hyphens and underscores. My question is; how do I remove ALL characters other than the allowed characters. For reference, my URL rewrite is [ICODE]([0-9a-zA-Z_-]+)[/ICODE] -Sam

Member Avatar for samarudge
0
136
Member Avatar for cassie261

I'm suppose to select any row from my database and delete the row but there is some problems with my coding. Can anyone help me to amend my php code? Thank you[CODE]<form method="post" action="deletestudent_p.php"> <? // connect to MySQL database server $connection = mysql_connect("localhost", "root", "") or die("Could not connect …

Member Avatar for hielo
0
104
Member Avatar for Allison2009

Hi, We wish to have a separate website and integrate it with Amazon. My doubt is whether we can have a Zen Cart Website and integrate it with Amazon Store. Expect to have replies from the community. Thanks in advance.

Member Avatar for sops21
0
171
Member Avatar for Juicebox

I need help with a project. The project utilizes the random number generator. What I have to do is get the player to set the min and max numbers of the game, and then a random number must be generated and the user has to guess what the number is. …

Member Avatar for kramerd
0
174
Member Avatar for Lxyslckr

I need to verify that the number the user inputed is between 1908 and 2012. here are the actual instructions "The constructor must also verify that the value provided for "year" is at least 1908 and at most 2012 – if not, set the year to 2010 by default" I …

Member Avatar for Lxyslckr
0
104
Member Avatar for shadiadiph

is there any easy way to set a cursor to a div so that you can type in a div onclick?

Member Avatar for lambing
0
683
Member Avatar for JOSheaIV

Okay so I am a newer programmer and have no clue how to use the language fortran77. All I know is I have the source code for the old game Adventure. Here is where I downloaded it from [URL="http://jerz.setonhill.edu/if/crowther/"]Where I Downloaded Files[/URL] I have no clue how to use this …

Member Avatar for Momerath
0
108
Member Avatar for kumar86

hello guys, I have written a script to open notepad and added the text in script, after that i want to save the file in text format. from pywinauto import application from pywinauto import application app=application.Application() app.start_('Notepad.exe') app.Notepad.edit.TypeKeys('hello') app.Notepad.MenuSelect("File->Open") app.Notepad.MenuSelect("File->Save")/*saveas dialog box opened and waiting for the filename*/ Please guide …

Member Avatar for kumar86
0
108
Member Avatar for sravi.pearl

hiiii all, Can anyone please help me regarding this .... i have table with 2 cloumns in a database "details" Name Age john 26 Mary 18 Nancy 20 i want to get only the Age in an array. I tired in this way: db=MySQLdb.connect(user="root",passwd="my",db="mydb") cursor=db.cursor()# prepare a cursor object using …

Member Avatar for sravi.pearl
0
207

The End.