199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for swathi sajja

How to add Sub menus in menu item.Main Menu item is Horizontal, Sub menu item are also getting Horizontal but i wont Menu item are Horizontal and Sub menu items are vertical

Member Avatar for JorgeM
0
186
Member Avatar for PickledPeppers6

**In some need of some serious help in converting this pseudo code into C#:** start Declarations num deptNum num salary num hrsWorked num SIZE = 7 num totalGross[SIZE] = 0 string DEPTS[SIZE] = “Personnel”, “Marketing”, “Manufacturing”, “Computer Services”, “Sales”, “Accounting”, “Shipping” getReady() while not eof detailLoop() endwhile finishUp() stop getReady() …

Member Avatar for ddanbe
0
216
Member Avatar for saadi06

Hi, I am habving problem with tcpdf library.I am using Version: 5.9.162.I have a table format structure and the user writes in the table format and add the data and creates the pdf but my pdf file is not creating as i wish to create them some of the data …

Member Avatar for diafol
0
1K
Member Avatar for ajitdas57

What is the html code to make horizontal boxes i need to make some boxes go from left to right but all i can find is on top of each other, you can see example here <a href="http://www.carinsurancequotesinformation.com&quot;>car insurance quotes</a> where the boxes are next to each other, and will …

Member Avatar for Taywin
0
103
Member Avatar for mattsearle

# Math.round # Hi, could someone please add the math.code function in the code below so that the resulting answer in the div is to two decimal places. <script type = <"text/javascript"> function calculate() { A = document.getElementById('input').value; outDiv = document.getElementById('output'); B =(parseInt(A) * 1.0); //alert(A); D = (parseInt(B) * …

Member Avatar for Taywin
0
193
Member Avatar for Neversleepin

Hello everyone, i have a NullPointerException error in my code at line4. Can someone guide me please. the code is here:[Click Here](https://friendpaste.com/21WFtusmIesUcgQ8erTzT9) Thank you very much NS

Member Avatar for stultuske
0
108
Member Avatar for RockJake28

I have tons of files in this project as I am programming an ARM board. Making a tilt snake game where the snake is controlled by an accelerometer. I am using a timer interupt (handled by timer0.c) to toggle a boolean variable `extern bool toMakeFood;` stored in "includes.h" that tells …

Member Avatar for deceptikon
0
303
Member Avatar for NidhishKrishnan

i've done an application with two JTextField with the autocomplete feature the application works fine but On clicking the Tab Button while the mouse pointer is on the first TextField the Mouse focus is not going into the second Textfield but gets the focus on the second time. i.e for …

Member Avatar for radhakrishna.p
0
824
Member Avatar for ibthevivin

For each part (A) (D) below, clearly indicate whether the runtime is O(log n) or O(n). Can someone please explain how this works? public class Q9f { public static void main(String[] args) { int n = ...; int[] a = new int[n]; // (A) for (int index = 0; index …

Member Avatar for tux4life
0
208
Member Avatar for aslam.junaid786

**CODE** #include "stdafx.h" #include<iostream> #include<conio.h> #include<string> #include<fstream> using namespace std; //---------------------------Function Prototypes----------------------------// void titleheader(); void menu(); void addbook(); void display(); //--------------------------Main Function---------------------------------// int _tmain(int argc, _TCHAR* argv[]) { int op; titleheader(); menu(); cout<<"\nPress option key to activate the required function: "; cin>>op; switch (op) { case 1: { system("cls"); titleheader(); …

Member Avatar for aslam.junaid786
0
928
Member Avatar for aslam.junaid786

CODE #include "stdafx.h" #include<iostream> #include<conio.h> #include<string> #include<fstream> using namespace std; //---------------------------Function Prototypes----------------------------// void titleheader(); void menu(); void addbook(); void display(); //--------------------------Main Function---------------------------------// int _tmain(int argc, _TCHAR* argv[]) { int op; titleheader(); menu(); cout<<"\nPress option key to activate the required function: "; cin>>op; switch (op) { case 1: { system("cls"); titleheader(); …

Member Avatar for aslam.junaid786
0
213
Member Avatar for wvoke9

Hi, In order to be able to display the graph I want I have to run two queries. The first query looks like this. SELECT PercentageScore,COUNT(*) AS 'IndividualFrequency' FROM resultsets GROUP BY PercentageScore I than want to take the IndividualScores and use them again in this Query. SELECT PercentageScore,CONCAT(100*(IndividualFrequency/32),"%") AS …

Member Avatar for wvoke9
0
151
Member Avatar for mathieu89

Hi, This has been troubling me for the last hour and I cant think of a way around it. My SQL table looks like this: **Name, Cost** Matt, $5.00 Carl, $4.50 Tom, $6.00 Tom, $7.50 I need to make a query so that it puts anything with the same **Name** …

Member Avatar for mathieu89
0
187
Member Avatar for murnesty

Hi, I have a problem on search text from a string. I'm able to find it but my method is slow. Let say I got a string that contain items and I need to find out which items come first. So I find all the item by *.IndexOf("...").* Then find …

Member Avatar for ChrisHunter
0
179
Member Avatar for dshiells

Hi all, I want to create a separate class in my C++ application which creates a dialog from a resource, similar to extending CDialog in MFC, however I would like to avoid using MFC. For example, I would like to be able to run the following code in my WinMain …

Member Avatar for dshiells
0
225
Member Avatar for skn123

<?php header('Content-Type: text/html; charset=UTF-8'); if (file_exists('./admin/actions/precheck.php')) { $testing_from = ''; require_once './admin/actions/precheck.php'; } $response = ''; try { require_once 'admin/config/ProjectConfig.php'; ProjectConfig::setup(); $options = array(); $application = new Moto_Html_Application($options); $response = $application->dispatch(); } catch(Exception $e) { echo '<b>Exception</b>: '; echo $e->getMessage(); } echo $response; Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on …

Member Avatar for pritaeas
0
108
Member Avatar for jalpesh_007

i have one question. I understand the type conversion in java.But i dont know where to use which conversion. Below i have given one example,but i don't which is used where? String s=”27”; int i=Integer.parseInt(s); System.out.println(i); /////////////////////////////////// String s=”27”; int i=(int)s; System.out.println(i); Although both are doing the same thing,but where …

Member Avatar for JamesCherrill
0
113
Member Avatar for aa_day90

I have this calculator class that performs business calculations distributed among small methods. I'm split between choosing to save the state, or just calculate everytime a method is called. Am I doing unnecessary micro-optimization or not? class Bill { private $value1; private $rate1; private $value2; private $rate2; // ...code here …

Member Avatar for aa_day90
0
86
Member Avatar for iamthesgt

I have a class Client that is the main class for my Windows C++ application. Inside the client class, I have a number of variables and functions. One variable I'm having trouble with is the manager: private IRManager* manager; The main function of my class is int APIENTRY InnoVisitClient::_tWinMain(HINSTANCE hInstance, …

Member Avatar for theguitarist
0
529
Member Avatar for PM312

I am getting below Error “Update requires a valid InsertCommand when passed DataRow collection with new rows.” **Below is the code in Module** Module ModDBConnection Public CnCommon As New SqlConnection Public DTCodeMaster As New DataTable Public DACodeMaster As New SqlDataAdapter Public CBCodeMaster As New SqlCommandBuilder Public Sub CommonCn() CnCommon = …

Member Avatar for PM312
0
192
Member Avatar for Woodenhousen

I am completely new to the C# development world and I am working on a small application which will allow a user to add basic employee details to a employee table. I can get the code to add a row to the table but the question I asked myself is …

Member Avatar for sohaiby
0
1K
Member Avatar for francispapagayo
Member Avatar for ImZick

Hello Guys.. Need help again with this code :( Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Name As String Dim Visits, Calls As Integer Dim Sales As Long Visits = 0 Calls = 0 Sales = 0 'I want to store all the lvAccountManager …

Member Avatar for tinstaafl
0
160
Member Avatar for disjes

Hi i nedd to update a datatable binded in a gridview here is the code: protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { ds.Tables[0].Rows[e.RowIndex]["n1"] = Convert.ToInt32(((TextBox)(this.GridView1.Rows[e.RowIndex].Cells[3].Controls[0])).Text); this.GridView1.DataBind(); GridView1.EditIndex = -1; GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } The problem is that when i change a value in the cell 3 and i click …

Member Avatar for tinstaafl
0
258
Member Avatar for sofien.fkih

I created a program that is running daily at a certain time, but I want this program to stop at some particular days(week ends), I have used the below codes to set the current time, public int GetDateNow() { Calendar currentdate = Calendar.getInstance(); DateFormat dateformat = new SimpleDateFormat("HHmm"); String datenow …

Member Avatar for tux4life
0
100
Member Avatar for triumphost

I'm in a bit of a dilemma. I want to know what the difference is between Foo and Meh. I wrote both of them and I did not like Foo so I wrote Meh. They both work but is there an overhead to Meh? Is there anything bad about Meh? …

Member Avatar for mike_2000_17
0
228
Member Avatar for Noopit

I Basically wanted to take an input and store it into a 2D Array called mat with a 3x3 size so i tried taking an input string, convert them into char and then sotring them in an array list and this is what i wrote so far. System.out.println("Enter Message"); Scanner …

Member Avatar for tux4life
0
3K
Member Avatar for padton

Hi all, I am trying to use the following python code to read data from two .csv files which have data in the following format, e.g. 1, 23.27, 23.21, 83.22 2, 34.25, 65.31, 34.75 ... etc I seem to be getting an error around during execution of the function. I …

Member Avatar for padton
0
282
Member Avatar for TheBrick

Hi, I'm not sure what forum to stick this in but seeing as the test was in C++ I thought I'd stick it here but feel free to move. I recently completed a test for a job application. I completed 2 out of the 3 questions (it was a choose …

Member Avatar for mike_2000_17
0
139
Member Avatar for CodyOebel

I am just researched out in frustration. No matter what I do I get an error trying to declare InternetOpen. [CODE] #include <WININET.h> #include <windows.h> int main() { /// Other includes were taken out to keep post small HINTERNET hInternet = InternetOpen( "TestApp", INTERNET_OPEN_TYPE_PROXY, "www.oebelknives.com",0, INTERNET_FLAG_ASYNC ); //HINTERNET FTPOpen = …

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

Hello, i am new to magento. please clarify me i want to do below task if cart amount greater than (grand total)500 then charge 10% deposit at first and before product delivery user has to pay remaining amount. if cart amount(grand total<=500) then user has to pay total amount. how …

Member Avatar for LastMitch
0
132
Member Avatar for IwalkAlone

Q.Write a function to concatenate to input strings into one large string and display the result. I know how to do this using strcat but not without it. Also can't use pointers. Please help!!

Member Avatar for ahmedhamdy
0
2K
Member Avatar for Yorkiebar14

Hello, I have a program I have made in vb which works perfectly fine. It has a couple of variables I would like the user to define though such as the timer interval. To do this I would like to have one program where the user can download it, run …

Member Avatar for TnTinMN
0
200
Member Avatar for clusterworks

Hi everyone! I have trouble putting together a chart with the contents of a data table that is basically as sex, marital status, age, and DATE . Im working with a bar chart or column chart, but I can't make it work like I want. What im looking for is …

Member Avatar for AleMonteiro
0
290
Member Avatar for Martin C++

As you can see from the title I am interested in making a shopping cart with javascript. What it should do is allow a client to add/remove products from the cart. Increase the quantity and have a visual overview of his cart. When he is finished he would go to …

Member Avatar for AleMonteiro
0
146
Member Avatar for shubham bhat
Member Avatar for GraficRegret

so here is the line calling the function: $login = login($username, $password); if($login == false) { $errors[] = 'That username/password combination is incorrect'; }else { $_SESSION[user_id] = $login; header('Location: anounceEdit.php'); exit(); and here is the functions code function login($username, $password) { $user_id = user_id_from_username($username); $username = sanitize($username); $password = SHA1($password); …

Member Avatar for bpinkston1
0
212
Member Avatar for Djmann1013

Hi, I have this code here: **index.php** <?php include 'core/init.php'; include 'includes/overall/overall_header.php'; ?> <h1>Welcome to AwsomeChat!</h1> <p>This is AwsomeChat - a free place just to hang out. This site is made for chatting or socializing with a friend. This site is free, no membership needed to use this site.</p> <?php …

Member Avatar for diafol
0
866
Member Avatar for Resentful

Hello, everyone. I've been attempting to make a proper proxy checker to check for HTTP proxies for a while, yet I've been unable to find one that correctly finds working proxies. The bulk of my code is below. $ch = curl_init(); //initizlize and set url curl_setopt ($ch, CURLOPT_URL, "http://google.com"); curl_setopt($ch, …

Member Avatar for Resentful
0
183
Member Avatar for chira.laura.9

Heloo everyone. I have this code for a form in PHP...but when I use $POST['collection'] or any other from th drop down lists I cannot access the vaalue of the variable passed: <form enctype="multipart/form-data" action="insert_validation.php" method="post"> <table border="0"> <tr><th>Choose category: <tr><td><select name="category"> <?php $sql=mysql_query('SELECT category from Category order by category'); …

Member Avatar for broj1
0
348
Member Avatar for mehnihma

in the string XX is always changed and string can be longer or shorter and it can be without searched word, where XX is a number example: 1 kom. nije naručeno, obično dolazi za 5 dana., slični: sony-6am6ptb1a (0 kom.), sony-s006pb1a (-9 kom.) So from that I need to output …

Member Avatar for diafol
0
148
Member Avatar for GraficRegret

ok so here is the code that is being called <?php require 'core/init.php'; if(empty($_POST) === false) { $username = $_POST['userName']; $password = $_POST['password']; if(empty($username) === true || empty($password) === true) { $errors[] = 'please enter a username and password'; }else if(user_exists($username) === false) { $errors[] = 'we can't find that …

Member Avatar for GraficRegret
0
365
Member Avatar for rpgowned

I know there are many other threads on this but i can't seem to make heads or tails of them and make them work in my code. I have multiple dropdowns on a page with a yes/no answer each question has sub questions if yes is chosen.. I would like …

Member Avatar for AleMonteiro
0
181
Member Avatar for mmonclair

I'm working on securing a form that is used for gathering info for online insurance quotes. The problem we've been having is that some insurance agents and rating services have been stealing our form and trying to use it on their sites. Well, there is info that we use to …

Member Avatar for mmonclair
0
298
Member Avatar for peymankop

Hi! i'm a bit new in c++ so i'v got some question wish you to answer me...! first of all i want my program to show the specific group of line of my file so i use this code for it: using namespace std; int main() { ifstream myfile; myfile.open("test.txt"); …

Member Avatar for Lucaci Andrew
0
129
Member Avatar for chris99

I'm having trouble getting my jQuery to work. The .js file is in the same folder as the homepage, and I'm trying to accordion a list using the effects plugin. Here's the jQuery code: $(document).ready(function(){ $('#accordion').accordion({collapsible:true, active: false}) }); Here's the homePage code: <!DOCTYPE html> <html> <head> <title>Santa's Workshop</title> <script …

Member Avatar for EvolutionFallen
0
163
Member Avatar for LD Company

Hello programmers! I want small help with code. I want something to happen when text in TextBox1 is A or B or C without writing same code 3 times. I don't know how to write it. I tried with it: If TextBox1.Text = "A" or "B" or "C" Then 'Event …

Member Avatar for AleMonteiro
0
185
Member Avatar for Clanstrom

I am a php newbie, and I have realised that there are many functions to learn in php, but can anyone point out which ones are the best for beginers? Can you mentions 10 most usefull functions or more?

Member Avatar for diafol
0
221
Member Avatar for LD Company

How can I get sum of total values from cells in DataGridView? I want it to look like this **Column1 Column2 Column3 Column4** String ---- String ---- String ---- 10 String ---- String ---- String ---- 7 String ---- String ---- String ---- 3 String ---- String ---- String ---- …

Member Avatar for LD Company
0
5K
Member Avatar for dksinghcomnez
Member Avatar for peter_budo
0
189

The End.