64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sjfleming

Hi, I'm trying to read an excel worksheet that has cells with decimal numbers with exponents of 2 or more. When I read a cell that has a value of say 1002.00 in the cell, I'm getting 1002 when the code is reading the cell. In the formula bar in …

Member Avatar for sjfleming
0
8K
Member Avatar for chetanbasuray

Ok...I have a very basic question...how do I attach my database when I'm turning my c#.net code into a setup file? I'm just learning and I'm sorry if you feel this a too basic question...:)

Member Avatar for chetanbasuray
0
158
Member Avatar for shanakaprabath

Can some one give me a sample code or project on how to load a data of a particular table in access databse in to a data grid view

Member Avatar for shanakaprabath
0
130
Member Avatar for MGIndia

is this code correct to create a new post item... [code] sfilepath=@""C:\Documents and Settings\example.msg"; Outlook._PostItem omail = (Outlook._PostItem)olApp.CreateItemFromTemplate(sfilepath,Type.Missing); [/code] am new to this and mainly doesnot know the difference between mailitem and postitem..but when i create a mailitem the code rus successfully.But when using postitem it shows the below exception.. …

Member Avatar for MGIndia
0
384
Member Avatar for riotburn

I am trying to use Newtons method to find implied volatility of a Black Scholes Call. So given all the other variables, I need to find what volatility makes the black scholes call equal to the current call price. I'm running what I have below but keep getting a random …

Member Avatar for riotburn
0
1K
Member Avatar for Olliepop

Hey daniweb! I have a really serious issue in my program right now. I'll explain how this piece works: -The server sends a ping -The client replies with a pong and starts a timer -Server sends pong back and the client checks how long it took to receive the second …

Member Avatar for Olliepop
0
155
Member Avatar for wtvrinc

Hello I am trying to get this function to work... [CODE] int error(const char* s) { int f=1; while (*s!='/0') { if(*s=='/') { f=0; return(f); } s++; } return f; } [/CODE] I want to find out if in the string tat i am passing there is a character "/"....But …

Member Avatar for wtvrinc
0
113
Member Avatar for ronaldpaul

Friends, in my project(i'm using php and mysql & i'll be getting all the detail from th user) I've to create a seperate ID for each family. For each family I've to maintain the family members details and the contact details.Now wats the problem is how can I add or …

Member Avatar for urtrivedi
0
168
Member Avatar for tryphy

Hi friends, I have a major doubt: Could you please help me with this... I have a create company form, create project form.. In the create company form, it creates the company name and a company code for it..and in the project form, i have one field as option value, …

Member Avatar for tryphy
0
148
Member Avatar for ZoMbiESsSZ

HI Guys. I'm trying to make my own lite program that can highlight specified chosen words (Syntax highlighting in short). I have a working method using Regex, but it is TOO SLOW. Here is what is currently: My Regex Statements: [CODE] public Regex SettingsAndComments = new Regex("--settings|-|", RegexOptions.IgnoreCase); public Regex …

Member Avatar for kvprajapati
0
283
Member Avatar for kenakena

After copying code into the IDE, it typically does not align with code already present. Is there a way to envoke a re-format of IDE so that all code will automatically align in its proper place ?

Member Avatar for kvprajapati
0
79
Member Avatar for jemz

hello please help me on this i am confuse, if i will use this [CODE]sql = "select * from item_table where itmno = '" & m_item & "'" Set item_rs = con.Execute(sql) 'do i still need to use this With cmd .ActiveConnection = con .CommandText = "item_table" .CommandType = adCmdTable …

Member Avatar for vb5prgrmr
-1
127
Member Avatar for XinJiki

Hello, I need some help with my homework assignment fir my C++ class, here is a description of the assignment: Write a program that reads this file and finds the longest word that contains only a single vowel (a,e,i,o,u). Output this word (there will actually be several ties for the …

Member Avatar for XinJiki
0
249
Member Avatar for futura

Please excuse me if this has already been covered before. I'm a C++ beginner, and in of the problems I have to do, the input has to be like this: 1) A number n is entered. 2) n number of strings are entered. I tried using a 2D character array …

Member Avatar for futura
0
86
Member Avatar for jpavao

Hi, If I have a class, defined in UML, that can contain itself (0 or more times) and if that class is a JPanel how would I implement it without the "Illegal Argument" runtime error? please see the attach file for a uml class diagram. Can anyone help me? Thanks.

Member Avatar for jpavao
0
170
Member Avatar for MDanz

this is just part of the code. when i added the variable hide it stopped working. basically i want the php variable hide to add on to the variable newtext2. if i've implemented it wrong, need help correcting it. [CODE] var newtext2 = obj( "reply" ).value; var hide = <?php …

0
70
Member Avatar for StaticX

Hi all, im wondering if someone could offer a solution to my current problem which is passing and return information using pointer notation. I have created a small program using the class Person, who has a first and last name and methods to add and retrieve this information which looks …

Member Avatar for Jiwe
0
100
Member Avatar for Tlaloc

I have made an array of class cards which is a 4*14 grid (The 14th space is for the 4 grey non-cards). So far i have made 2 methods for this. The first was an algorithm for figuring out where each card belongs which I painted on when they were …

0
75
Member Avatar for Emmett_1981

I have created a simple JTable with 5 columns, I need to perform validation on the column entries. I have used the getValueAt ( col, row) function to get the values from the columns. For the first four columns this works without fail but for some reason the last column …

Member Avatar for Emmett_1981
0
635
Member Avatar for katharnakh

how to create a submenu in python? how to use [I]insert_cascade(index,**options)[/I].......... please help me out.

Member Avatar for skydiverman05
0
4K
Member Avatar for Singlem

Using a dbexpress component to connect to a mysql DB. If I want to commands like Insert, Delete and UPDATE I use a query. The question is How can I let the user Write the commands into a Richedit or Memo, what ever is the best. And then load those …

Member Avatar for finalist
0
147
Member Avatar for dottomm

Hello. I am having trouble with a count col query I hope some one can help me with. I have six questions and I would like to count how many "yes" answers in each col and then group by that col. Here is my schema table:survey ||id || Q1|| Q2|| …

Member Avatar for dottomm
0
101
Member Avatar for Eternity[LK]

Hi. I have some beginner questions related to C# in general, as well as my first home assignment in C#. When the .exe file is opened, a window pops up and asks user a question. He has 2 answer options (2 buttons). The task is - make it impossible for …

Member Avatar for Geekitygeek
0
2K
Member Avatar for biebel

HI, i'am an newbie and have following question I have two tables 1. repair_details with fields partnumber, quantity, Pn_id 2. Parts with fields Pn_id, price, partnumber.... I would like to fill in repair_details the Pn_id automaticly after I input the partnumber and quantity. Any suggestions? thanks

Member Avatar for biebel
0
98
Member Avatar for houlahan

ok so my original code was: [CODE] Patient patient = new Patient(); patient.setId(1); patient.setName("luke"); patient.setAddress("100 test"); patient.setTelNumber("01484710204"); patient.healthproblem.setBrainProblemName("Brain Cancer"); patient.healthproblem.setDateDiagnosed("30-03-1990"); patient.healthproblem.setPatientHealth("Poor"); Patient patient1 = new Patient(); patient1.setId(2); patient1.setName("john"); patient1.setAddress("100 test"); patient1.setTelNumber("01484710204"); patient1.healthproblem.setLungProblemName("Lung Cancer"); patient1.healthproblem.setDateDiagnosed("12-02-1991"); patient1.healthproblem.setPatientHealth("Poor"); patient1.healthproblem.setLungProblemSide("Left"); if ("luke".equalsIgnoreCase(patient.getName())) { out.writeObject(patient); } else if ("john".equalsIgnoreCase(patient.getName())) { out.writeObject(patient1); }[/CODE] so when the …

Member Avatar for houlahan
0
97
Member Avatar for Egypt Pharaoh

Is swich can take string parameter yes or no like [CODE] string s="Mo"; swich(s) { case "sa ": break ; case "jv": break; default : break: } [/CODE]

Member Avatar for gangsta1903
-1
131
Member Avatar for aladar04

The program should tell user how many vowels occured on each word in a given string. The string was "Once upon a midnight dreary, while I pondered weak and weary." The output generated by the codes below was: [COLOR="Green"]Enter string(s): Once upon a midnight dreary, while I pondered weak and …

Member Avatar for gangsta1903
0
118
Member Avatar for txwooley

I am trying to put a terminal into my tk gui program as a widget. I figured out how to have the output of a command sent to a text widget: [CODE] root = Tkinter.Tk() tfield = Tkinter.Text(root) tfield.pack() for line in os.popen("run_command", 'r'): tfield.insert("end", line) root.mainloop() [/CODE] But how …

Member Avatar for txwooley
0
11K
Member Avatar for nola_Coder

I'm working on an animated sprite program. It animates an asteroid sprite and bounces the asteroid around the screen. When I compile, I am having trouble with 4 particular lines. I am getting the same three errors for each of the 4 lines. These are the errors (obviously for line …

Member Avatar for Salem
0
118
Member Avatar for wilsonz91

Hi, My problem here is that, I want to add up the total of the few different items that are entered. I have no idea how to add them up, please offer some suggestions, thanks [CODE]#include<iostream> #include <windows.h> using namespace std; float weightcount(float w); float distancecount(float d); int main(void) { …

Member Avatar for wilsonz91
0
186
Member Avatar for scias23

i have many textboxes in my form, now i want to validate the data inside it. how can i achieve this other than the try catch? i want the validation to be usable in all my forms so i'll write it as a sub/function. any suggestions?

Member Avatar for apegram
-1
104
Member Avatar for cloud09

I have a text area that is part of a form for a manageable picture gallery. When the user clicks the text area, the "Description" is supposed to disappear, and then when they click away, if they didn't type something, "Description" is supposed to reappear. The problem is is that …

Member Avatar for muralibobby2015
0
188
Member Avatar for ybkumar77

Hi I am using Rougewave library for one of my program. I am using the RWHashTable from it. during the startup of my program, I will load this hashtable with information read from database. so, I have the hashtable filled with data. and during runtime, I need to print all …

Member Avatar for ybkumar77
0
139
Member Avatar for Mapopa

Instructions: You are required to design and write an application that will analyze an input file (InputFile.txt); the file contains a date on each line. Your algorithm should output all the missing dates, excluding Saturdays and Sundays. You should not cater for public holidays. Also keep in mind: each leap …

Member Avatar for Geekitygeek
0
116
Member Avatar for colweb

Have written a simple PHP program to get data from a database to an accounting program. Therefore I need to do some calculations. And one of them goes completely wrong. [CODE]<?php $prijs = 480.00; $nvh = 432.00; $prov = 40.34; $btw = 7.66; $over = $prijs - ($nvh + $prov …

Member Avatar for colweb
0
133
Member Avatar for nathan2oo3

Hey, just signed up to this forum so first of all would like to say Hi . I am currently working on a review website building from code I had written previously. The problem I am having is with my login script. I Have three pages set out index.html, login.html …

Member Avatar for nathan2oo3
0
100
Member Avatar for haggis-man

I was hoping that there would be a readonly system or session variable such as @@username or @@user_id or similar Is there any way I can access username information inside an SQL database please? I am hoping to use it to render certain ROWS visible/invisible in views This would be …

Member Avatar for haggis-man
0
84
Member Avatar for fuggles

For some reason the post is not getting inserted into my database. [code=PHP] if($_SESSION['permissions']>=1) { $query="INSERT INTO news (id, title, poster, posterid, body) VALUES ('$id','$title','$poster','$posterid','$body')"; $result=mysql_query($query,$con); header("location:index.php"); } [/code]

Member Avatar for liamfriel
0
87
Member Avatar for vilas_tadoori

Hi All, I am newbie to the C# programming and we have to design a situation with the following use case. We would like to control the text boxes visibility using a checkbox. When ever we check the checkbox the textbox should not be visible and when we uncheck the …

Member Avatar for Geekitygeek
0
96
Member Avatar for kiranbvsn

i got 2 html pages with the following data index.php (buttons: SAVE, EDIT) update.php (buttons: UPDATE,DELETE) Employee ID (primary key), Employee Name (here i putting 2 buttons Edit,Save) when i entered the empid and click the Edit button, the page has to go from index.php to update.php and at the …

Member Avatar for kiranbvsn
0
117
Member Avatar for kanuri1

hi any body tell me , how to create a dll file in asp.net using vb.net or please give me any websites for creating dll files in asp.net using vb.net.................

Member Avatar for kvprajapati
0
303
Member Avatar for muralibobby2015

hello..... i am fetching text from database. i want to restrict 400 characters from that after "readmore". it redirects to total page. i was used substring but i want to total validate what means after 400 characters there is '.' is there then not appear '.........'like this. otherwise appear after …

Member Avatar for pushpakalpana
0
139
Member Avatar for abu taher

I type 2009 in mask edit box and select August from a combo box. then I press report button for report. then show this msg: "run time error 713 Application - defined or object defined error" another thing when I run the exe of this project in another pc then …

Member Avatar for abu taher
0
2K
Member Avatar for tintin.iitk

e.g. [CODE] class B { public: virtual ~B() {printf("Base class Destructor");} }; class D { public: ~D() {printf("Derived class Destructor");} }; [/CODE] Is it somehow possible to altogether avoid printing 'Base class Destructor' when an object of class D is destructed (of course without causing a memory leak).. If you …

Member Avatar for tintin.iitk
0
2K
Member Avatar for neosonic

I would like to create a drawing tool similar to visio, with the linking to the database But i have another half of my .exe project done with visual basic.\ we want to sell it. is it wise to use visio and built macros links to it? is it easy …

Member Avatar for neosonic
0
341
Member Avatar for hitro456

Hi everyone...([COLOR="Green"]read carefully[/COLOR]) I am Developing an application in C#. In which First I create two text files say a.text and b.text. and then fetch data from them ...... Now every day when I run my code for the first time I want to delete these files and recreate new …

Member Avatar for hitro456
0
145
Member Avatar for dude1

i have my file input like this ifstream inFile; inFile.open(fileName.c_str()); and i cin >> fileName; i want the output file name to be the input filename with .dat added to it eg if fileName was c:/tmp/test.txt i want the output to be c:/tmp/test.txt.dat anyone know how i can do this …

Member Avatar for dude1
0
99
Member Avatar for kuteinheart

Hey ppl, I am using wampserver for my Website development... Now, I want to send mail to a particular user from mysql table... when i use the mail function for PHP code [CODE]mail($mail_to,$mail_sub,$mail_mesg,$headers)[/CODE] I am getting the error as follows [CODE]Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" …

Member Avatar for kuteinheart
0
346
Member Avatar for clutchkiller

[code] #include <iostream> using namespace std; int main() { double var1 = 0; var1 = 2/10; cin.ignore(); cin.get(); return 0; } [/code] Its not setting var1 to .2 it is keeping it at 0. wth? it does 10/2 = 5, but then it does 2/10 = 0.

Member Avatar for clutchkiller
0
109
Member Avatar for xuexue

hi there, i have a webpage which is divided into three frames, left frame, main frame and the bottom frame. all the buttons are in the left frame, hence, once a button is clicked, the data will be displayed in the bottom frame, now my problem is that, how could …

Member Avatar for kvprajapati
0
109

The End.