199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bigwhiteegg

This question has been bothering me all day. if I'm trying to pull out all strings that are in a txt file and all start with "abcde" is there anyway to find them, and copy the strings?? assuming the txt file contains lots of text

Member Avatar for bigwhiteegg
0
91
Member Avatar for eileenc87

Dear All, When i execute my queries for Edit and Save for edited subject, there is no updated in my sql database. Appreciate if anyone could lend me a hand for this issue. My queries are as below. Private ConnString As String = "server=localhost; Integrated Security=SSPI;Persist Security Info=False;database=carerpt" Public Sub …

Member Avatar for Jx_Man
0
5K
Member Avatar for JerieLsky

Hi, I'm having a problem on how to query from the following tables. Here are the tables. PATIENT: PK - PatientNo - FirstName - LastName - MiddleName - Address - Age FK - PageNo PAGE PK - PageNo BOOK PK - BookNo BOOKPAGE 'Junction Table PK - BookNo PK - …

Member Avatar for pratik_garg
0
145
Member Avatar for paresh_thummar

I want to check weather my database contain row or not? and if it contain then i want to delete that row. this process can be done during run time of page.

Member Avatar for Knvn
0
87
Member Avatar for CorruptionInc

OK, here's my assignment: Write static methods public static double sphereVolume(double r) public static double sphereSurface(double r) public static double cylinderVolume(double r, double h) public static double cylinderSurface(double r, double h) public static double coneVolume(double r, double h) public static double coneSurface(double r, double h) that compute the volume and …

Member Avatar for Spiderpig085
0
659
Member Avatar for e-papa

[CODE]#this function checks if a number is a prime number, #if not it outputs the lowest factor. def isprime(n): """Determines whether a number is a Prime number, Takes a single arguement n, which is the number""" if n==1: return 'Not a Prime number, only has one distinct factor' elif n==2: …

Member Avatar for e-papa
0
221
Member Avatar for kesh1000

hi Q1 could anyone let me know what difference would it make to the program in terms of memory and program speed if i use arraylist or hastable or vectors Q2 which of this is better program practise declare separate vectors or arraylist for different data or use hashtable and …

Member Avatar for jwenting
0
159
Member Avatar for mohit girdhar
Member Avatar for jwenting
0
95
Member Avatar for dustbunny000

I have this code: [CODE]protein="GWEIQPYVWDECYRVFYEQLNEEHKKIFKGIFDCIRDNSAPNLATLVRVTTNHFTHEQAMMDAVKFSEVLPHKKMHRDFLEKLGGLSAPVDNHIKGTDFKYKGKAKNVDYCKEWLVL" pp="LLCCCCCCCCCCCCCCCCCCHHHHHHHHHHHHHHHHHCHHHHHHHHHHHHHHCCCCHHHHHHHCLLLCCCCCHHHHHHHHHHHHHHHHHHHCCCCCCCCCCCHHHHHHHHHHHHCCL" gor="cccccccccccchhhhhhhhhhhhhhhhhhhhhhhccccccccceeeeecccccchhhhhhhhhhhcccchhhhhhhhhhhhhccccccccccccccccccccccceeceeccceec" aber="CCCCCCCCCCCCHHHHHHHCCHHHCHHHHHHHHHHCCCCHHHHHHHHHHHCCCCCCHHHHHHHCCCCCCCHCCHHHHHHHHHHCCCCCCCCCCCCCCCCCCCCCCCCCHHHHHHHCC" for i in range(len(protein)): print i+1,protein[i], pp[i], gor[i], aber[i] [/CODE] I'm trying to compare these strings. However, the output is in a vertical format. How can I print it so that the format is vertical? This would make it much easier to …

Member Avatar for jice
0
232
Member Avatar for Kath_Fish

Hey ...Now i want to compare the two things...I will explain my problem.. Now I got single items and their values For exmple: item: value 2 : 6 1 : 5 3 : 4 5 : 3 i want use this to swap the place for my combination for example, …

Member Avatar for Kath_Fish
0
87
Member Avatar for aniperiye

i have a problem. i want to import multiple tables from a same excel sheet to a datalist or more.how can i identify different tables.please help anyone. advance thanks to all.

Member Avatar for aniperiye
0
112
Member Avatar for pito_donje

Private Sub Command2_Click() CommonDialog1.ShowOpen Text5.Text = CommonDialog1.FileName Picture1.Picture = LoadPicture(Text5.Text) Text5.Visible = True End Sub

Member Avatar for pito_donje
0
141
Member Avatar for Freedom*

write a program which uses a class with the name Student, the class will have as data - name - AM - grade1 - grade2 - grade3 all the data of the class have to be private the program will ask the elements of two students, it will save them …

Member Avatar for Freedom*
0
111
Member Avatar for suncica2222

I've made java desktop application,swing gui in netbeans and it works in netbeans but I have 2 problems: 1. I cant export working jar or class files 2. I need to run and build it from cmd line in windows xp I guess that I need to include something in …

Member Avatar for mKorbel
0
3K
Member Avatar for slrobinson1983

hello all. i have this code... [CODE]<?php $query= "SELECT * FROM table"; $result=mysql_query($query) or die(mysql_error()); $num_rows = mysql_num_rows($result); if($num_rows > 0) { echo "<table>"; while($row = mysql_fetch_array($result)) { echo "<td>" . $row['data'] . "," . "</td>"; } echo "</table>"; } ?>[/CODE] lets say it is displaying from 5 records, it …

Member Avatar for diafol
0
105
Member Avatar for arsheena.alam

Hi, I have a variable @FranchiseId declared in my stored procedure If I try the following select command, will it work???? SELECT @FranciseId=(select FranchiseName FROM franchise WHERE username=@username),username FROM MyTable I hope you Understood My problem!!

Member Avatar for arsheena.alam
0
127
Member Avatar for pooja1232001

i have one question--> umbrella activities occur throughout the software process. is it this way that they are applied evenly across the process, or are aome concentrated in one or more framework activities? i appreciate if i get the comments or answer

Member Avatar for hearthackerali
0
3K
Member Avatar for sachintha81

I have a very simple WCF program where I have a simple self-host and a client running on the same computer. There is a single method which returns a System.IO.Stream, which is actually a serialized form of a simple string. (This could be any number of data types, but for …

0
110
Member Avatar for vivekagrawal

I have a form form1 and there is a search button for searching the doctor when i click search button then a new form opens i.e. form2 and in form2 there is a data grid view control and i want when i select any doctor and click on apply button …

Member Avatar for vivekagrawal
0
336
Member Avatar for erioch

Hi all, I have this code for registration page, I have run some diagnostic tests and found that it is valnurable for Cross site scripting, any help??? or sugestion??? I have attached a copy of the report. Other pages had valnurabilities but very low.... I am not good at asp …

Member Avatar for reygcalantaol
0
435
Member Avatar for Arjun_Sarankulu

I am having a form through which user will enter empcode(checking whether it is present in the table) When i click On Login i am getting the following error [B]Invalid column name[/B] [B]cmd.CommandText = "select employee_code from MST_Employee where employee_code = " + emp_code; [/B] In the above select i …

Member Avatar for Arjun_Sarankulu
0
130
Member Avatar for Andrewsc1

I am having trouble figuring out how to get my function (lines 45-57) to work. Option Strict is supposed to be on. I am getting the error "Option Strict On disallows implicit conversions from 'Decimal' to 'String'." This is an intro problem so its going to be basic. [CODE]Option Strict …

Member Avatar for Andrewsc1
0
142
Member Avatar for ITKnight

Hi all, I want to save some form setting at registry, my friend told me that vb has a function to save it.. what it is? and how to use it? Please Help Thanks

Member Avatar for ITKnight
0
701
Member Avatar for ImDead

I have so much trouble in making this thing work. This is what i supposed to do: 1.build program to make histogram 2.The program should also calculate average and median. 3.The array should come from the text file. The problem is..i can build the histogram..but i have problem to get …

Member Avatar for abhimanipal
0
160
Member Avatar for Ancient Dragon

>>Ok, so time() function (argument being null) returns what? It returns the number of seconds since 1970, as you previously posted. It doesn't matter whether the parameter is NULL or not, it will always return the same value.

Member Avatar for Ancient Dragon
0
372
Member Avatar for Lusiphur

To preface this post I'm going to say that what I'm looking to do is purely in the theorhetical stages at this moment so I don't have any code to share yet. At it's basest essence what I'm attempting to do is compare Image A with Image B to determine …

Member Avatar for arisa12
0
718
Member Avatar for charchar88

I usually program in java but I'm going to implement this in C but the general logic psuedo code should work I would think. these numbers represent these characters: 2-abc 3-def 4-ghi 5-jkl 6-mno 7pqrs 8-tuv 9-wxyz If I were to type in a 7 digit number say 233-7687 as …

Member Avatar for abhimanipal
0
209
Member Avatar for newack

Problem while running program: java.lang.NoSuchMethodError: main Exception in thread "main" My code is: [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Plane extends JApplet implements ActionListener { JTextField input; JLabel prompt; JButton yesButton,noButton; int section, firstClass,economyClass; boolean seats[]; boolean questionPosed= false; public void main( String args[] ) { prompt …

Member Avatar for newack
0
214
Member Avatar for Shaitan00

Currently I have a windows service written in C# (running as LocalSystem) which creates a user account, needed for impersonation, by using the DirectoryEntry to add the user/password and associated UserFlags. Then it simply uses this account to perform some tasks (using impersonation) using the LogonUser() functionality - works perfectly. …

Member Avatar for Shaitan00
0
182
Member Avatar for DelphiGuy

Basically I have a label which I do the following with on start up of my application: [code] with Label1 do begin Caption := 'Computer Locked'; Align := alClient; Alignment := taCenter; Top := 400; end; [/code] Now the problem I have is the alClient and taCenter work perfectly making …

Member Avatar for Wolfgan
0
403
Member Avatar for swathys

hi, i would like to check the server datetime when ever my application start. The datetime must be the same with my pc datetime....How do i do that...Is there a way.... i got a code from somewhere but it doesn't work at all...can anyone help me on this.... [CODE]Public Sub …

Member Avatar for swathys
0
1K
Member Avatar for Simran Kaur
Member Avatar for dxider
0
634
Member Avatar for Miss-uae

hi all. plz i need help , idon't know how to solve it if anybody help me and to discuss to me how can i write it in assembly program , and this is the question: ================ Write an assembly program that reads Quantity and Unit price as a string …

Member Avatar for bfrin1
0
180
Member Avatar for perly

Hi, I have two files: File1 (tab-delimited and two columns): Ex_efxb 0.0023 MSeef 2.3000 F_ecjc 0.3338 MWEEI -0.111 DDAIij 17.777 File2: MSeef 2.3000 F_ecjc 0.3338 I want to search the content of File one using the content of File 2 and then display the output as follows: Date of search: …

Member Avatar for perly
0
1K
Member Avatar for burntout

A company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9% of $5000, or a total of $650. Develop a console …

0
169
Member Avatar for ITKnight

Hi all, How i can split a string that include spaces by "&" ? I already used split function but there are problem with spaces. thanks.

Member Avatar for ITKnight
0
211
Member Avatar for bmason

This is my first foray into the world of programming. I'm doing a practice project for the consulting firm I work for, and my current objective is to make my submission page textboxes insert the user input into specific tables in my database. Later I'll need to retrieve the data, …

Member Avatar for Momerath
0
123
Member Avatar for goldeneagle217

I am writing a program that requires toggling between 2 forms. I thought I could use the Hide and Show methods but I need a way for the forms to know about each other so they can Hide themselves and Show the other form. Initially, form1 instantiates form2

Member Avatar for goldeneagle217
0
123
Member Avatar for alex1050

[CODE]#include <stdio.h> cant figure it out, im trying to count all digits please help with this bugs int main() { int iochar, numdigits=0, numlower=0, numupper=0, numwhites=0; printf("Please enter a phrase:\n\n"); while((iochar=getchar())!=EOF) { if ((iochar='\o ')||(iochar='\t')||(iochar='\n')) { numwhites++; putchar(iochar); } else if((iochar>='0')&&(iochar<='9')) { numdigits++; putchar(iochar); } else if(('a'<=iochar)&&(iochar<='z')) { numlower++; putchar(iochar-32); …

Member Avatar for alex1050
0
85
Member Avatar for os.hacker64

When you do something like [code] cmp eax,ebx ja start;jump if above start: [/code] Jump if above jumps if eax is greater or if ebx is greater?

Member Avatar for GunnerInc
0
128
Member Avatar for Unseen Machine

Hi folks, I have googled around, read a lot and still can't figure it out. I know a bit of C++, but am far from literate in all commands. I am much happier with QBasic (old i know, but it works). I have made qb code and need to convert …

Member Avatar for mike_2000_17
0
344
Member Avatar for margeaux54

after finishing books of thinking in c++ vol1 and voL2 , ı decided to read c++ programming language 3rd edition by stroustrup. Do you think that it is appropriate?

Member Avatar for rubberman
0
140
Member Avatar for jmcorpse

Can someone help me figure out what I am doing wrong here. I think I may be running my head into this way to many times to see what is wrong with it. The error code is posted below. [CODE] import java.util.Scanner; public class userName { /** * @param args …

Member Avatar for jmcorpse
0
319
Member Avatar for jrp370

my problem comes up with the code is creating an envelope it keeps saying that envelope can not be resolved to a variable any idea on how to fix this? [CODE]import java.io.*; import java.net.*; import java.awt.*; import java.awt.event.*; /* $Id: MailClient.java,v 1.7 1999/07/22 12:07:30 kangasha Exp $ */ * A …

Member Avatar for Ezzaral
0
194
Member Avatar for sirlink99

I have this code, when run, it is terribly unorganized. It looks like this: [Label Here] [Button Here] [-----TextField Here ----] [invisible Label][Button] my program does this: when something is entered in the JTextField and then you click the [Button Here] then it prints what you printed in the [invisible …

Member Avatar for sirlink99
0
7K
Member Avatar for Kase42

Hey everyone. I am attempting to create a simple console maze generator in C++ for a school project. I've already gotten most of it down but I'm having a problem debugging the actual generation algorithm I've implemented. I've been learning C++ for the past few months now but I haven't …

Member Avatar for Kase42
0
2K
Member Avatar for brianjoe

Hi all I have made a website for a client, a little like a small forum. There are these inputs when starting a new thread: Headline URL Content In the URL they can type only letters numbers and a "-". So that their threads URL can be like [url]http://www.something.com/show/this-is-my-thread[/url] But …

Member Avatar for MagicMedia
0
147
Member Avatar for Despairy

hey i have a problem with a code that i cant figure out what it is im "fresh meat" in assembly so might be a few things what i tried to do is 1) open rnd.txt(65kb) file as read/write ( dump.exe it and you get hex numbers on dos) 2) …

0
72
Member Avatar for Ssnowlin

I have a reg text box and just want to add the save command, I managed to figure out how to do open but save is giving me problems. I am fairly new at VB.net been coding less then a week so I need all the help you can give …

Member Avatar for Ssnowlin
0
114
Member Avatar for efronefron

I dont have any idea what the problem is. But what I know is it stopped at fgets(temp, 256, stdin); when I run the program, it runs this line and then just stopped because of a segmentation fault. The silly printfs are just for me checking where it stopped exactly. …

Member Avatar for efronefron
0
129

The End.