64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for curt22

I have a single line text box, that is wide enough to hold 20 characters and I was wondering how do I make it so that you can keep typing even though it's got 20 characters in it without making it longer and without a vertical scrollbar? I'm sure it's …

Member Avatar for curt22
0
90
Member Avatar for DaveHammer

Hi all, I have been struggling with time/date in perl for several hours now and for some reason i get a quirky error. I have an array called "date" 44 elements in length and "time" 44 elements in length. I created this code to convert UTC to localtime (Alaska). But …

Member Avatar for KevinADC
0
94
Member Avatar for ryy705

Hi, I am writing a desktop application. It would make my life easier if the application can save all it's data in a database software. Do typical desktop applications come packaged with 3rd party database software or do they rely on internal serialized data structure? If 3rd party database applications …

Member Avatar for ryy705
0
197
Member Avatar for curt22

I have a simple program with a button and an entry field, and I'm wondering how can I organize them (like they were in a table) so that they don't overlap? I'm using the windows api. I tried searching but I'm not sure what to call this.

Member Avatar for curt22
0
122
Member Avatar for Pro2000

Peace, I saw a chat Program on the Net... The Messages In it automatically shows itselves without reloading the web-page.. I saw that and I wondered.... Does Any one know how to do that?

Member Avatar for hacker9801
0
87
Member Avatar for DaveHammer

Hi all, I am in a situation where I don't know much PERL/CGI, but am frantically reading through the learn Perl/learnCGI in 24 hour books. I just got done programing in dbase for some climatology work and now have to switch gears quickly. My mission: to read in a (comma-delimited)web …

Member Avatar for DaveHammer
0
142
Member Avatar for abar_sow

How to write these file datas in the new file...It should be done by wrting bytes into characters import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; public class fileread { public static void main(String[] args) { File file = new File("E:\\ir_Proj estimate_out.txt"); byte[] b = new byte[(int) file.length()]; …

Member Avatar for abar_sow
0
140
Member Avatar for NuGG

I have obtained the following script which only lets a page load if the visitor has been to the previous page, if they haven’t it sends the visitor to the appropriate page. However, it only works in Mozilla. Can anyone help me adapt this script to work in Internet Explorer? …

Member Avatar for HazardTW
0
282
Member Avatar for BigFormat

Hi guys, I've got troubles with a conversion. My function: void stringFormat (char *input, int nums) receives a string like this: "name;3,45,5,6,77;" and a number indicating how many numbers in the String (in this case 5) I've got to tokenize the string in order to obtain: 1) a string named …

Member Avatar for BigFormat
0
159
Member Avatar for phobia1

Hi Guys What I am trying to do is allow a 3 x 3 grid of images and then have bottom navigation. You can see the existing layout at http://areabulgaria.net/properties.php Here is the code to where I am so far, since I'm no real programmer, its giving me a headache. …

Member Avatar for phobia1
0
142
Member Avatar for zandiago

So far is what I've got: [CODE] #include<fstream> #include<iomanip> #include<string> #include<iostream> #include<cmath> using namespace std; int main() { float matric = 47.60;//matriculation fee int hrz;//semester hours float regroom = 387.29;//rate for regular room float acroom = 496.49;//rate for AC room float dip = 38.00;//diploma fee float food = 619.66;//rate for …

Member Avatar for iamthwee
0
2K
Member Avatar for dmotah

hi every1. im wrtting a chat system!,the problem i dont no how to insert the value of a variable into the db(mysql) i no connection and insertion, but only data, nat variable, plz help

Member Avatar for world_weapon
0
110
Member Avatar for Duki

We're discussing constructors. My problem is this: Define a class called Month that is an ADT for a month with one variable as int to represent a month. Include all of the following member functions: a constructor to set the month using the first three letters in the name of …

Member Avatar for Duki
0
141
Member Avatar for KimJack

I am trying to read a line from a file, then print only the first word in the line. It needs to do this until the end of the file. The file is as follows: Bib 0.9898 .iuiu k.kljlkj .98908 Joel .0909 .iuou k.iopi .jlkj ... I need it to …

Member Avatar for KimJack
0
86
Member Avatar for claudiu_is
Member Avatar for Ezzaral
0
127
Member Avatar for nobody2ph

hi guys, i know this might look like a n00b's homework assignment - but it aint, im studying VB for myself. Im trying to do this tutorial over here, cuz everybody said it's good [URL="http://www.profsr.com/vb/vbless04.htm"]http://www.profsr.com/vb/vbless04.htm[/URL] Prob is when i try to press the confirm button, error message pops up saying …

Member Avatar for Dell XPS
0
573
Member Avatar for partyanimal

I have been asked to create a system where that can rate colleagues with colours the colours are as follows starting with the highest first Gold Silver Bronze Blue Orange Black the colleagues all will start on Orange. now the tricky part. If the colleague sells a quantity of 4 …

Member Avatar for preetham.saroja
0
107
Member Avatar for trudge

I know there have been several posts concerning Python and CGI / HTML, but I can't get my little script to even print a web page. [code] #!/usr/bin/python print "Content-Type: text/html\n\n" print import sys sys.stderr = sys.stdout import cgitb; cgitb.enable(display=0, logdir=".") print """ <html> <body> <div align="center"><font style="font-family:verdana; font-size:18px">Hello from …

Member Avatar for trudge
0
149
Member Avatar for Kevin008

I am just starting out at JAVA and trying to write a program that counts all characters in a string, counts all characters minus trailing and leading blanks and also counts all non-blank characters. Here is what I have so far. I am stuck on the non-blank character counts. Can …

Member Avatar for masijade
0
186
Member Avatar for bluebird

[code] String query="SELECT *FROM addresses"+ "WHERE lastname='"+ fields.last.getText()+"'"; [/code] What is wrong with the above SQL statement? I got the error message as "Syntax error in FROM clause"

Member Avatar for bluebird
0
74
Member Avatar for jobs

test = [random.randint(1,10) for i in range(20)] Can someone what does the random.randint(1,10) fron to for loop does, and the square brackets around it means, make it a list?

Member Avatar for vegaseat
0
363
Member Avatar for apontutul

I want to get a parameter from the URL to another jsp page. for eg: [URL="http://localhost:8080/vote-0.3/view-poll.jsp?poll_id=4"]hxxp://localhost:8080/vote-0.3/view-poll.jsp?poll_id=4[/URL] get this(poll_id=4) in my new jsp & then pass this parameter to its bean & servlet. the link to the new jsp is in this page. what do I need to do in my …

0
85
Member Avatar for tgifgemini

Hello everybody, my program have been working and today I'm getting run time error 1004 - invalid number of arguments on this line of code: [code]mystr = "Comments:" & "'" & xlApp.Clean(Trim(rsin![Comments]))[/code] Also, I am getting a "Runtime error 1004 - unable to set the RowHeight Property of the range …

Member Avatar for tgifgemini
0
525
Member Avatar for jarv
Member Avatar for jaepi

Hello there, I have here a problem with the compilation of my program. The compiler tells me that my typedefs are redefined, but I defined it only once. Ok, heres the score, I have here a header file (let's name this as file X) that contains all the typedefs that …

Member Avatar for GreenDay2001
0
212
Member Avatar for bhmails

Hi all, I'm new at c. How do I make the system pause until any key is pressed in linux like getche does in borland? thanks

Member Avatar for TkTkorrovi
0
304
Member Avatar for bajanpoet

I have a button that when pressed displays all the customers in the table. Other buttons are used to add or delete a customer record, or upload a batch of numbers. How can I fire the Click event of the View button after the Add or Delete buttons code has …

Member Avatar for bajanpoet
0
142
Member Avatar for iCez

Hello guys, just wanna ask help from you again. I just reviewed my notes and tried to run the code, I successfully debugged it but when I ran the code it says [I]java.lang.NoSuchMethodError: main Exception in thread "main" Process completed. [/I] I just don't know what to do. =/ here's …

Member Avatar for iCez
0
94
Member Avatar for Fungus1487

Hello all. Which is the best practice to use when creating dynamic links i.e. onclick events. [CODE]<a href="javascript:somefunction()">click me</a>[/CODE] OR [CODE]<a href="javascript:void(0)" onclick="somefunction()">click me</a>[/CODE] i realise the first is not an 'event' but i have a web app which is displaying 6000 of these links all at one time and …

Member Avatar for Fungus1487
0
2K
Member Avatar for staneja

Hi i am making a new user page where user will fill username and password and i want to put some client side validation on it Suppose user has given wrong values in password and Confirm password column so before a request is send to secnd servlet i want to …

Member Avatar for masijade
0
192
Member Avatar for staneja

Hi All I am trying to create 2 tables Table 1 with cust_id , username and password (Cust_id is primary key here) Table 2 wth cust_info that will store info for that cust........now i want to use this Cust_id as foreign key here in table2 but i am not able …

Member Avatar for staneja
0
102
Member Avatar for laseredd

I recently installed Linux (Slackware Linux 12) on my laptop. On Windows I used IDLE for my python development, but on Linux, IDLE looks HORRIBLE. I tried tweaking the settings but it still looks bad, and is hard to program in. Can anyone recommend a good IDE for Python that …

Member Avatar for freddypyther
0
237
Member Avatar for tgifgemini

[B][/B] Hi Members, please can anyone show me how I can write a blank line after writing each records? My intension is to space out the data in the spreadsheet for readability. So far the code I'm using is not doing it. Seem my module below: [code] i = 5 …

Member Avatar for binoj_daniel
0
221
Member Avatar for apontutul

i want to show a image using servlet,which is being called by a java file (beans). in that java how will i get the parameter eg: poll-id=1,2 or 3...n from that jsp page?....here what i've done(.java file) but the its not showing the image(error: data not available): [CODE] package myapp.webwork.beans; …

0
77
Member Avatar for wasee

I have to do aproject in java so please guide me what kind of project can be done in java ? thanks

Member Avatar for masijade
0
166
Member Avatar for Duki

ok so i'm new to vb. what is wrong with this code at line 28: Public Class Form1 Const DISCOUNT_RATE As Double = 0.1 Const RENTAL_RATE As Double = 1.8 Dim totSales As Integer Dim totIncome As Double Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …

Member Avatar for cutepinkbunnies
0
194
Member Avatar for theraven1982

Hello, I've just started learning C, and now I have a problem (and I couldn't find a solution on the interweb ;) ). I want to multiply two matrices (2x2). First it 'reads' two matrices, and after that it needs to multiply it. It reads the matrices using double for-loops; …

Member Avatar for theraven1982
1
14K
Member Avatar for hbk619

I want a line of buttons down the side of a swing window. I got this code so far: [code=java]import javax.swing.*; import java.awt.*; class basic extends JFrame // implements ActionListener { public basic() { super("Till"); setSize(600,500); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); Container contentArea = getContentPane(); contentArea.setBackground(Color.white); BorderLayout flowManager = new BorderLayout(); contentArea.setLayout(flowManager); JPanel …

Member Avatar for hbk619
0
2K
Member Avatar for vidaj

Hello. I'm having a hard time figuring this out. I want to open a file, but I don't know the filename. I know the directory the file resides in, and I know the extension ('.lay'), and I know there is only one file with that extension in the directory. How …

Member Avatar for iamthwee
0
105
Member Avatar for wicked357

here is what I have to create: using while, for, do...while Write a program that displays a menu with the following choices to the user. A - Find the largest # with a known quantity of numbers B - Find the smallest # with an unknown quantity of numbers C …

Member Avatar for Salem
0
107
Member Avatar for upstream

Hey, i am practicing in this book sample, it says i can rewrite my code for determining the highest value in my 3 input. the commented part is working perfectly (Line 19, 26), it can return the highest value... but when i try to rewrite it using the Math.max method, …

Member Avatar for upstream
0
162
Member Avatar for grahhh

I'm new to Python, and need a bit of help. I have a large data set that is tab delimited but annoyingly also has some extra spaces in it and I can't seem to get it in a nice array to perform computations on it. This is a simplification of …

Member Avatar for paddy3118
0
187
Member Avatar for anil1219

Hi All... Plz solve my problem. String temp="Vendor number modified from 12345 to 00056789" How to separate these two numbers ? Plz reply soon.

Member Avatar for anil1219
0
105
Member Avatar for prettyboy

Hi. This is my first post and i'm a newbie. I'm learning to use VB6 and i'm trying to create a simple alarm clock but having a type mismatch error. It seems that the input time does not match the clock time. i have here the code. Hope u can …

Member Avatar for prettyboy
0
160
Member Avatar for Dio1080

I'm working on a code on compatibility and it seems that after I ask and answer the first question, the program just stops, I have no clue why it doesn't go on to ask the next question, can somebody help my figure this out, thanks, oh here is my code. …

Member Avatar for Dio1080
0
141
Member Avatar for rapperhuj

Hello everyone, I just need help on this code. I can't debug it, I'm just new in Java and this is just my fifth assignment so I'm really having a hard time. Here's my code: [code]import java.io.*; public class input { public static InputStreamReader Reader=new InputStreamReader (System.in); public static BufferedReader …

Member Avatar for saifjob40
0
215
Member Avatar for iCez

Hi everyone, I hope you guys can help me. [U]Output[/U] Enter your department number: You belong to: 1-3 = Mr.X 4-7 = Mr.Y 8-9 = Mr.Z ------ [I]Error: When I input numbers from 1-9, the output that is displayed is always "You belong to: Mr. Z" Here's my code:[/I] [CODE]import …

Member Avatar for iCez
0
135
Member Avatar for Granprix

Hi! I'm having a proble with constructors. I'm supposed to write a program that has a default constructor, but also one that takes parameters. The program I wrote below is desigend to allow teh setting of age of the person, but when I compile it, I get a message saying …

Member Avatar for Hamrick
0
142
Member Avatar for rohit saroha

folks! i,have came through a problem that is the operating system is a driver or not,though i,know that an OS provides an environment to the drivers and specfically speaking it is drive the data from source(H/W orS/W)to the destination.but does really an OS is a driver though it also provides …

Member Avatar for rohit saroha
0
102
Member Avatar for Pretorak

Hello everyone, I don't often use forums for getting answers, but I simply cannot seem to find how to fire a MessageBox under Borland Builder...I could use MessageDlg which works, but I only want an OK button, so I would rather go with MessageBox...code sample: [CODE]void __fastcall TForm1::cmdPlayClick(TObject *Sender) { …

Member Avatar for robgxxx
0
2K

The End.