199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for concordia

Hi again, I'm stumped. I'd like to store results from a questionnaire in a multi-dimensional session variable to tally the number of questions answered after the entire questionnaire is completed. Users choose selections from checkboxes, so I have that info coming from an array. I was hoping I could just …

Member Avatar for keyroche
0
2K
Member Avatar for Mr_PoP

[CODE] #include "SQL.h" const char * pQuery(const char * query,...) { va_list argptr; va_start( argptr, query); char buf[4096] = ""; sprintf(buf,""); int ret = vsprintf(buf + strlen(buf), query, argptr); strcpy(buf + strlen(buf), ""); va_end( argptr ); return buf; } [/CODE] [CODE] MYSQL * mysql; int main() { //loading the config …

Member Avatar for Mr_PoP
0
111
Member Avatar for Pundia

Hi, I want to sort a TStringList but not by the strings in it, but by the Objects. Here's my code: [CODE]var i : integer; iCount : integer; idxFound : integer; someText : string; s : TStringList; oneWord : string; aux : integer; begin someText := memo_txtfile.text; oneWord := ''; …

Member Avatar for Pundia
0
836
Member Avatar for writecharlie

I've got myself in a real state with a simple assignment. I'm very very new to this and just when I thought I had got there of course I hadn't. I've been told that I need to allow the user to restart through every step in this ordering process. I …

Member Avatar for mcriscolo
0
132
Member Avatar for markdean.expres

Good day everyone! I have a problem with the filtering part of my application. I am already using this code; Tablebindingsource.filter = "Prereq Like '" & textbox.text & "%'" it searches for values from Table whose Prereq value = textbox.text. My concern is, how about if there are several items …

Member Avatar for markdean.expres
0
102
Member Avatar for tcollins412

ok, so i am writing a program for my client. i have a thing where they can view all of their clients. I have it listed where their clients names are listed. How do i make it so when they click on thir clients names, it calls their id from …

Member Avatar for lyrico
0
76
Member Avatar for NickBogi

I am trying to create a dynamic form for the first time. I need an product reservation form that allows up to 10 products to be reserved. I have line 1 done and the javascript code is working. [URL="http://ryanpartyrentals.com/nb/formtest.php"]http://ryanpartyrentals.com/nb/formtest.php[/URL] Let's call those fields Category, SubCat, SubCat2 (left to right). The …

Member Avatar for Airshow
0
174
Member Avatar for roydavies20

Just Started C in University, first time doing it and the first program i had to write was one that required someone to be able to enter 5 random numbers and get the average of the 5 numbers, the highest/lowest of the 5 numbers and then finally the standard deviation …

Member Avatar for roydavies20
0
239
Member Avatar for Duece_68

Hi guys I really need your help. Im developing a C# app thats going to be home to a few plugins. So Im writing the first dll and already in trouble (don't do much c# mainly c++). anyways so far i have a class within my dll that takes a …

Member Avatar for Duece_68
0
334
Member Avatar for pmark019

I want to count the number of lines that are inputed in my program but I don't know how. Can someone please help me. Here's my code: [CODE]import java.util.*; import java.lang.*; import java.io.*; public class Exer6 { public static void main(String args[]) { String[] dummy1, dummy2, dummy3, dummy4, dummy5; String[] …

Member Avatar for pmark019
0
181
Member Avatar for danholding

hey guys and girls i am having a bit of a problem with my code [CODE] import os,string,sys,pprint,time,glob from datetime import datetime, timedelta fileList = os.walk('.')#if i use glob.glob it does not show any files now = datetime.now() TWA = now + timedelta(days=-1) #print(TWA) files=str() for files in fileList: fileStats …

Member Avatar for griswolf
0
385
Member Avatar for winky

Hey everyone, I have been receiving an error that states that one of my variables ("$fileAmount") is undefined. I was hoping you guys might see something in my code where I am making a mistake. Please note that this is not the entire code, but where the error is occurring. …

Member Avatar for Airshow
0
81
Member Avatar for prithvi.web

Hi Guys, I am trying to make a string from an array.The array structure looks like this [CODE][n3] => Array ( [0] => 2011-01-19 [1] => 2011-01-12 )[/CODE] Now if n3[0] or n3[1] is null i mean if any one value is absent then the string should look like [CODE]$str …

Member Avatar for prithvi.web
0
106
Member Avatar for azegurb

hi All i have taken from internet script that post data with the help of AJAX and PHP below is script [CODE]<html> <head> <script type="text/javascript" src="prototype.js"></script> <script> function sendRequest() { new Ajax.Request("test.php", { method: 'post', postBody: 'name='+ $F('name'), onComplete: showResponse }); } function showResponse(req){ $('show').innerHTML= req.responseText; } </script> </head> <body> …

Member Avatar for scrappedcola
0
102
Member Avatar for Argyrisv

I want to compute md5 hash from a MimeMessage type.I use the following code to do this: [CODE] //MD5 private static String convertToHex(byte[] data) { StringBuilder buf = new StringBuilder(); for (int i = 0; i < data.length; i++) { int halfbyte = (data[i] >>> 4) & 0x0F; int two_halfs …

Member Avatar for Argyrisv
0
192
Member Avatar for JKemp

Hello I am new to ASP and Access Databases really as well. I primarily use PHP and MySQL/Postgre.I work for my university in web admin department and due to rather sloppy coding in the past by workers have to rewrite an ASP form that writes to an Access DB. I …

Member Avatar for ArtistScope
0
476
Member Avatar for newlearner2008

I have a request form that calls an asp.net file to email request to my account. My web hosting is on GoDaddy.com. Could someone help me find why it does not work? It worked on my old hosting. Part of my form: [code] <!-- ////////////////////// FORM ///////////////////////////////////--> <form action="aspmail.asp" method="post" …

Member Avatar for ArtistScope
0
213
Member Avatar for SpiderWebs

[code] void databaseUpdate() { conString = "Data Source=(local);Initial Catalog=Northwind;Integrated Security=True"; con = new SqlConnection(conString); con.Open(); string quryString = " select * from Employees"; da = new SqlDataAdapter(quryString, con); ds = new DataSet(); da.Fill(ds, "Emp"); //dataGridView1.DataSource = ds.Tables["Emp"]; dataGridView1.Columns.Add("EmpID", "ID"); dataGridView1.Columns.Add("FirstName", "FirstName"); dataGridView1.Columns.Add("LastName", "LastName"); int row = ds.Tables["Emp"].Rows.Count - 1; for …

Member Avatar for SpiderWebs
0
161
Member Avatar for Nirliq

I hava a prooject that uses ShellExecuteInfo and it works fine as log as you don't want to change the name of the file. [CODE] SHELLEXECUTEINFO fei; fei.cbSize=sizeof(SHELLEXECUTEINFO); fei.fMask=SEE_MASK_NOCLOSEPROCESS; fei.hwnd=GetDesktopWindow(); fei.lpVerb="Open"; fei.lpFile="C:\\Program Files\\WinZip\\wzzip.exe"; fei.lpParameters="-a+ -r -P -whs -x@nobackup.txt C:\\Progra~1\\DIR\\DIR\\Data\\ful.zip @backup.txt"; fei.lpDirectory="C:\\Program Files\\Patches\\GLB\0"; fei.nShow=SW_HIDE; fei.hProcess; [/CODE] I would like to be …

Member Avatar for Nirliq
0
134
Member Avatar for summey

[CODE]Validating against schema: Employee.xsd Error: Element 'Phone': The attribute 'Type' is not allowed. on line 9 Line 1 <?xml version="1.0"?> 2 <?xml-stylesheet href="http://courses.oreillyschool.com/introxml/xsl/PhoneBook.xsl" type="text/xsl"?> 3 <!DOCTYPE Employees> 4 <Employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Employee.xsd"> 5 <Employee> 6 <First>John</First> 7 <Last>Smith</Last> 8 <Phone Type="Home">1-800-123-4567</Phone> 9 <Birthday>1960-05-25</Birthday> 10 <HourlyRate>35.85</HourlyRate> 11 </Employee> 12 </Employees> 13 [/CODE] …

Member Avatar for summey
0
254
Member Avatar for PM312

i am typing below code in each and every date text box keypress event to allow numbers and back slash keys only. can any function or subroutine be created to avoide typing same code again and again in the project. [CODE]Private Sub Text1_KeyPress(KeyAscii As Integer) Dim ch As String ch …

Member Avatar for PM312
0
68
Member Avatar for Hawkeye Python

Hi! I don't know much about Java and I'm new to JQuery. I want to replace "+ Table" for "- Table" when the user clicks on it. For that I've used: [CODE]$(document).ready(function () { $('#table1_head').click(function () { $('#button1 a').replaceWith('- Table1'); }); });[/CODE] It worked. But I want to replace "- …

Member Avatar for Hawkeye Python
0
193
Member Avatar for k2k

hi, basically i have this function. [code] function showDetail(checkBoxShipmentId) { xmlhttp = GetXmlHttpObject(); // this calls function below if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } var url="detailBackend.php"; url=url+"?shipmentid="+checkBoxShipmentId; //?shipmentid = value of the checkbox, which is the shipmentid url=url+"&ran="+Math.random(); if(xmlhttp.readyState ==4) { xmlhttp.onreadystatechange= displayDetail; xmlhttp.open("GET",url,true); …

Member Avatar for Airshow
0
638
Member Avatar for moone009

Hello! Basically I need this program to go line by line down my text file and tell me if it sees "000-00-0000"......we use this as a dummy number otherwise the file wont process. Right now the program will tell me it sees "000-00-0000" in the file but a few lines …

Member Avatar for Mitja Bonca
0
5K
Member Avatar for program_vission

Is there any other way to get to next record without refreshing the current page in jsp.

Member Avatar for program_vission
0
64
Member Avatar for emcyroyale

Hello, I am making a program that tries to identify if an inputted word is a palindrome( word or number that reads backwards and forwards the same) but with the Pali() method of my program I have found out that when I compare the substring of letters it always ends …

Member Avatar for JDCyrus
0
194
Member Avatar for Duki

Does anyone know what this is? It's in a piece of code I'm trying to debug, and I've never seen it: [code=c++] typedef void FAR * socktag; [/code] Also, could someone explain the difference between these two lines (after the typedef executes): [code=c++] socktag SMTPSock; int SMTPSock; [/code]

Member Avatar for Ancient Dragon
0
2K
Member Avatar for rhuffman8

I am relatively new to Python and just have a couple quick questions about using file paths in Python code. 1) As I was recently playing around with the command line, I could not get a file path to work correctly unless I used forward slashes in the path...for example: …

Member Avatar for richieking
0
403
Member Avatar for sohel807

Why I have not seen any underline with the menu items although I have put "&" within the menu names. My code is as follows: [CODE]import wx import os class MainWindow(wx.Frame): def __init__(self, parent): self.dirname='' # A "-1" in the size parameter instructs wxWidgets to use the default size. # …

Member Avatar for richieking
0
281
Member Avatar for DoctorGiraffe

Hello! Yes, This is my first post. And it might seem a little selfish that i just joined to ask a question, so don't worry, i'm not gonna ask and run, i'll stick around. So my problem, what im trying to do is using regex i'm pulling information from a …

Member Avatar for codeorder
0
991
Member Avatar for eiven_05
Member Avatar for AndreRet
0
595
Member Avatar for dragostone

Greetings everyone. i have a number of check box's, a message text area and a submit button. Depending on what box is checked it will send the message to that email address. Here is the code for the form: [CODE] <form method="POST" name="myform" action="checked.php"> <input type="checkbox" name="emails[]" value="user1@domain.com" /> <input …

Member Avatar for dragostone
0
860
Member Avatar for abelingaw

How do i populate a combobox with values from a certain field on my database when i click the control? My combobox control name :cbodept Dbase table: Offices and Dbase Table field is: Office Preferably code. Thanks

Member Avatar for AndreRet
0
107
Member Avatar for vbx_wx

[code] a = 10 def foo(x = a): print x a = 5 foo() [/code] Can someone explain why it prints 10 ?

Member Avatar for vbx_wx
0
102
Member Avatar for arthurav

I am creating a template class for working with matrices and get an error when I try to use the overloaded << operator. This is the code: [CODE]#include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int); matrice(FILE *); matrice(int,int,T **); …

Member Avatar for vijayan121
0
2K
Member Avatar for james6754

[CODE] TextReader myreader = new StreamReader; [/CODE] Is this inheritance...?? Thanks

Member Avatar for kvprajapati
0
80
Member Avatar for paulablanca

Hello! Anyone could tell me how to set the limit of a certain column to accept 10 the same inputs only. I have a table named Date and I want to limit its content for the same inputs to 10 only cause 10 person only can have the same date. …

Member Avatar for paulablanca
0
173
Member Avatar for ALFA-FOXTROT

I have this code in the general js file. [CODE] $("#tabs").tabs({ collapsible: true, cache: true, ajaxOptions: { error: function(xhr, status, index, anchor) { $(anchor.hash).html("Couldn't load this tab. We'll try to fix this as soon as possible. If this wouldn't be a demo."); } } });[/CODE] And [CODE]$("#tabs").tabs( "remove" , 2 …

Member Avatar for ALFA-FOXTROT
0
676
Member Avatar for sanjon

Hello, I have just started using databases, but I am totally stuck. I made a database and table using MS Access. The table has three columns. ID, Code, and Letter. Basically, the Code column stores a number for each letter (eg. 1 = A, 2 = B, 3 = C, …

Member Avatar for kvprajapati
0
101
Member Avatar for Jwallis

I had someone build forms for me but they didn't put in tags to have those forms do anything, the just made input fields. I have some knowledge on how to do this, but have never written PHP before and was told this is what I need to do to …

Member Avatar for nicholas1981
0
187
Member Avatar for MrCapuchino

Hello, I have a CHM file created that opens through a button of my Windows Form Application. I don't know if it has to do with c# or the file itself, but when I open the file it opens succesfully but it shows first the "This program cannot display the …

Member Avatar for MrCapuchino
0
108
Member Avatar for MrCapuchino

Hi, I have a form which has the property StartPosition set to Center Screen It works, but if I change the property FormBorderStyle to something, the Center Screen property stops working? Why is this happening? Thanks in advance

Member Avatar for darkagn
0
188
Member Avatar for samsons17

Hi,sorry for the title of this thread as I not really know what to give it :) Anyway, I got a problem with my newly created website. My website got the blog section where I write everything onto it.And i when I try to share the link of my recent …

Member Avatar for samsons17
0
193
Member Avatar for cmjmson

hi, I'm starting my thesis proposal and I've come up about career assessment for incoming first year students. The problem is i cannot find any career assessment tool that will be my source. our school cannot give us their questionnaire because its against the rules. I'm just wondering if anyone …

Member Avatar for onjing
0
133
Member Avatar for LianaN

Hi! I am working on scaling the image that is placed in JLabel. The scaling method itself works more or less fine, however a black border appears around the image after scaling. I tried to make the transparent/white JLabel background, but my attempts failed. Please explain me how could I …

Member Avatar for LianaN
0
450
Member Avatar for ansari.wajid

I am facing a unique bug on a website I am developing, Its occurring only for IE(I am using IE8) that too only on the online version of the site, On my local machine its working perfectly and on all other browsers(firefox, safari, and chrome) its working perfectly both on …

Member Avatar for ansari.wajid
0
226
Member Avatar for Raghu D

hi! In my project ,the url should not be shown to the user.I want to hide it using servlet filter. Can anyone help me ,how to achieve this task...........thank u......

Member Avatar for ~s.o.s~
0
2K
Member Avatar for Mr.BunyRabit

Hey there I have a part in my program where it should calculate the total in one column of my datagridview. All goes well and good while there are no Null values between them in my column. So i thought ill use exception handling seeing that my If statement throws …

Member Avatar for Mr.BunyRabit
0
99
Member Avatar for kiran.madke

[code] protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { detailview1.PageIndex = GridView1.SelectIndexl; } [/code] this show gridview first page data when i go to second page of griedviw detail view show dat which is in first page of griedview not a current dta why?

Member Avatar for Ramesh S
0
86
Member Avatar for rusl07cl08

Write a program that computes XN where X is a floating point number and N is a positive integer. The program informs the user that N must be positive if the user enters a negative value. Of course, XN = X * X * X * ... * X -------------------- …

Member Avatar for Akill10
0
670

The End.