199,113 Archived Topics
Remove Filter ![]() | |
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 … | |
[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 … | |
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 := ''; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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[] … | |
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 … | |
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. … | |
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 … | |
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> … | |
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 … | |
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 … | |
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" … | |
[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 … | |
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 … | |
[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] … | |
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 … | |
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 "- … | |
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); … | |
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 … | |
Is there any other way to get to next record without refreshing the current page in jsp. | |
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 … | |
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] | |
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: … | |
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. # … | |
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 … | |
how to transfer data from datagrid to textbox using vb6.0???? | |
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 … | |
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 | |
[code] a = 10 def foo(x = a): print x a = 5 foo() [/code] Can someone explain why it prints 10 ? | |
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 **); … | |
[CODE] TextReader myreader = new StreamReader; [/CODE] Is this inheritance...?? Thanks | |
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. … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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...... | |
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 … | |
[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? | |
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 -------------------- … |
The End.