64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for LFCDay123

I have made a currency converter and have converted a made up currency to UK Sterling. I have made it so the amount of UK Sterling appears like '2.32' but I want to have the £ sign before the amount of money to show it is now in UK Sterling. …

Member Avatar for LFCDay123
0
87
Member Avatar for marcmanlin2

Hello Guys! I am using listview. i want to search using textbox records from the database and display the searched records in listview. i read some post here with same/like mine but they're using datagrid. :|

Member Avatar for marcmanlin2
0
223
Member Avatar for MichaelCJ10

Im trying to make an array that just lists out some values, its the number of items sold in a day in a shop. and then, total those items in a seperate printf. Heres my code so far, i also seem to have an issue where it just ignore my …

Member Avatar for MichaelCJ10
0
123
Member Avatar for angelclawdust

hello there im trying to add 2 links to a login menu after the user had logged in it should display there name followed by you are logged in. but if there user level is -1 then it should also add below that the 2 links create fixture and reset …

Member Avatar for angelclawdust
0
159
Member Avatar for Labdabeta

A friend of mine recently asked me to help debug some code. I looked through it and it was riddled all over with goto statements. I know why he uses them (he used to program mainly in assembly and batch) and I tried to explain why he should try to …

Member Avatar for Labdabeta
0
421
Member Avatar for subith86

Hi, I have overloaded assignment operator like below and it worked perfectly fine. [CODE]void Test::operator = (Test& obj) { this->a = obj.a; this->b = obj.b; } [/CODE] But when I googled more about this, I could see all of the examples used a different prototype like this [CODE]Test& Test::operator = …

Member Avatar for subith86
0
135
Member Avatar for dantinkakkar

I'm currently developing a program that has a lot of different, say, components to it that have to be linked together in some sort of manner. Now, what I wanted to ask is, is it viable to create all of the components as separate executables and access them programmatically?

Member Avatar for JamesCherrill
0
121
Member Avatar for lxXTaCoXxl

Okay basically I have a class that manages sound and it's volume is a floating point value with 1.00f being 100% and 0.00f being 0%. So the math is done in low values. Allowing more precise calculations. Anyways, I'm adding and subtracting from the value by 0.05f as per the …

Member Avatar for skatamatic
0
172
Member Avatar for Sarwat Zodiac

Hi In VB6, I have a Combo Command, and I made meny steps iside it, it is about 48,000 characters, and I need more !! but I got this msg: "Proceduer is too large" !! so, what can I do to complete my steps !? Thanks.. Sarwat.

Member Avatar for Sarwat Zodiac
0
230
Member Avatar for marcmanlin2

how can i avoid data duplicate in the database? i mean if i add in the fields that has been already save it will still save. i don't know how to query or filter not to add the same info. i have the code below but it still save if …

Member Avatar for marcmanlin2
0
162
Member Avatar for FelineHazard

Hi all, I want to know if there is a smart way in c++ to test if my variable (or pointer) was already initialized? For example, I have a linked list, and I want to add an item to that list. If would like to do some thing [CODE] if …

Member Avatar for Ancient Dragon
0
7K
Member Avatar for selman555

Hi all, I have question about sessions in web services (VB). I created a function that allows me to login to my web service. I created a session here and added some values I retrieved from a stored procedure. The code will explain more :) [code=vb] <WebMethod(EnableSession:=True)> _ Public Function …

Member Avatar for thines01
0
280
Member Avatar for Eragah

[B]Ok so i have two classes a tester class and a class that has the variable of drawing an ellipse. The program prints out 4 faces with 4 different colors. I want to store the users choice of one of the four choices in an array. Can someone help me …

Member Avatar for thines01
0
336
Member Avatar for rithish

what is the use of malloc,calloc,realloc ?? i studied i didnt get proper knowledge .why instead of this why cant we use array???

Member Avatar for deceptikon
0
122
Member Avatar for DelphiGuy

Hello, basically I am making a program which uses OOP to draw objects onto a canvas and they constantly move, I am making a feature which will save the position variables as the objects move each time and then once a file is outputted it can be read again and …

Member Avatar for pritaeas
0
152
Member Avatar for sujan.dasmahapa

I am trying to create a toolbar on my dialog, so I am creating it in the OnInitDialog() function, but the toolbar is not coming. please help me finding whats going wrong in this. Thanks Sujan [code] BOOL CDlgsViewDlg::OnInitDialog() { CDialog::OnInitDialog(); CToolBar m_FirstToolBar; if(!m_FirstToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP …

Member Avatar for sujan.dasmahapa
0
100
Member Avatar for Zumie

Greetings everyone! im having my final project. My program is all about retrieve data from Excel Worksheet then show/calculate it in VB6. The problem im having here is i keep getting compile error "Procedure too large". I understand that VB6 procedure max is 64k and to make it small is …

Member Avatar for Sarwat Zodiac
0
1K
Member Avatar for choosechrist

i've come across many methods online to create a datetime picker within a datagrid view, but i haven't got a proper solution. i have a DGV which takes in truck no and date of arrival. i want the second column to appear as a datetime picker so the users can …

Member Avatar for choosechrist
0
198
Member Avatar for nyancat

Hello, I want to add another receiver to this contact form, he has to be bcc, and not shown as receiver but still receiving the message from the contact form: [code] <?php if(isset($_POST['submit'])) { error_reporting(E_NOTICE); function valid_email($str) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE; } if($_POST['name']!='' && …

Member Avatar for pritaeas
0
150
Member Avatar for marcmanlin2

please i need help on making data report which the database is access 2007 with accdb format. what connection will i use and how and sample codes. thanks a lot in advance.

Member Avatar for marcmanlin2
0
591
Member Avatar for subrata_ushasi

Hi all, I am creating an cms/admin where I want a drop down consists of list of product and an another drop down consists of list of sub products. On selection a product ,the corresponding lists of sub product will be generated in sub product drop down. using javascript I …

Member Avatar for subrata_ushasi
0
268
Member Avatar for Persi

While displaying the data from the database on a text box, I can access only the first part of the name. For example, if the name is 'Five Star', only the name 'Five' is displayed. Can you help in this? I'm just a beginner. This is the code i've used …

Member Avatar for Persi
0
4K
Member Avatar for kutchbhi

This is the project I am reading from . [url]https://github.com/sasatomislav/PHP5-OOP-Cart[/url] [CODE] class Cart { <snip> private function __construct() {} /** * Fetch Cart instance * * @return Cart */ public function getInstance() { if (NULL === self::$_instance) { self::$_instance = new self; } return self::$_instance; } } <snip> // initialize …

Member Avatar for pritaeas
0
265
Member Avatar for DelphiGuy

I'm having trouble getting GDI sample codes to work, I've seen the external packages and downloaded them but I couldn't get the same code to work and I believe it's because I don't know how to install the GDI packages properly, can anyone help me?

Member Avatar for DelphiGuy
0
209
Member Avatar for razamughal67

Hello everyone i want to get all file in a folder to a listbox using visual basic 6.0 example: i have many files in a foldre mp3,dat,mpg etc file in D:\musicfolder and we use a listbox and a timer or command botton when i click on command botton then listbox …

Member Avatar for razamughal67
0
5K
Member Avatar for bigzos

I am able to save the datagridview as an excel sheet but everytime i do it,the previously saved file gets replaced which i do not want..i want the file to be saved with a new name everytime [CODE]Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim …

Member Avatar for bigzos
0
2K
Member Avatar for choosechrist

In my application, i have put a question on form closing if the user wants to save the changes?. But right now, i have just put it in default whether they make changes or not. I thought of prompting it on text change.. but the text automatically changes on load …

Member Avatar for pROKO
0
454
Member Avatar for Kognition

This is boggling my mind. I wrote a quick auto-loader and it appears to work like it is supposed to, except that it keeps changing the argument $class from the class name to "self". Here is the code (followed by further information on what I've tried): [CODE] public static function …

Member Avatar for Kognition
0
112
Member Avatar for gopi17

Hello all, Guys need some advise and some help regarding displaying data from database... so, basically this is what i'm trying to do, have a keyword (invoice_no)...i'm suppose to search the database, and the find record...the display the remaining attributes (document_no,pallet_no and so on) invoice.php [CODE] <FORM ACTION=".php" METHOD=get> <h1>Enter …

Member Avatar for gopi17
0
148
Member Avatar for webwiz

I have a strange problem with testing file_exists. When I hardcode the file name 007-PCSafety.zip file_exists works fine but when I post the filename 007-PCSafety.zip it doesn't recognise the file exists. here's the code. I'm swapping the $p variable to test. [CODE=php] if($_POST){ $url = $_POST['dl']; $filename = basename($url).PHP_EOL; $p=$filename; …

Member Avatar for webwiz
0
1K
Member Avatar for jnewman3

So I have a matrix class that must run on a unix/linux server. The main is a test file that is provided by the instructor. When I compile my code in visual studio it works fine except for test 8 because I can't figure out how to return a print …

Member Avatar for jnewman3
0
1K
Member Avatar for bibiki

hey there, I need an idea on how to store some information in a database. Let us assume that I want to build an application that allows a user to record what bars he visited each day. The number of bars is variable, and a user typically visits more than …

Member Avatar for bibiki
0
142
Member Avatar for jtodd

Hey guys! I have created an Access 2010 database. On one of the tables, there are fields [Start Time], [End Time] and [Total Time]. The user will input the start and end times but and the total time will be the difference between the two. I cannot figure out how …

Member Avatar for jtodd
0
170
Member Avatar for TrickyT

hi, all ... very new to java, but plugging along somehow ... however, i have an assignment that wants me to find the value of all of the inventory of a product and i have the entire code, but the method that i created to calculate the value ... calculateTotInvent() …

Member Avatar for TrickyT
0
191
Member Avatar for jackmaverick1

[CODE] #include <vector> #include "Rab.h" class Envo { vector<Rab> items; };[/CODE] the error is: [ICODE]error: 'vector' does not name a type[/ICODE] I can't find ANYTHING that's wrong. Is someone else able to find it? BTW, Rab.h contains the class 'Rab'. Jack

Member Avatar for jackmaverick1
0
86
Member Avatar for codedude

I have a Windows aplication where i want to click a link in a website automatically after an automatic login.Now i am done with automatic log in.but unable to click the link which is enclosed inside <a> tag eg: <a>to be clicked link</a> any help will be appriciated

Member Avatar for markjames2012
0
2K
Member Avatar for dennysimon

hello all how to put more than one JLabel in a vertical direction,and right align by computing the length of each of JLabel.Text so the appearance like below Name: Position: age: thank you denny

Member Avatar for zeroliken
0
71
Member Avatar for bluealein56

I know alot of you guys get the same posts over and over about intro JavaII Classes, but I have tried to refrain from asking something that has already been solved and try learning on my own, but Im stumped. Im having trouble with this program, specifically at my calculation …

Member Avatar for zeroliken
0
811
Member Avatar for showman13

I know I should know the answer to this, but I'm drawing a blank... I have a conditional statement that checks for the value of a variable, and if it isn't 'Y', then it does a redirect using the header statement. apparently something that I did a couple days ago …

Member Avatar for showman13
0
296
Member Avatar for HoneyBadger

Guys I have this string: [CODE]mystring = 'blue, pink, red, red, red, white, long, short, blonde, blonde'[/CODE] I want to: 1.) Split it into a list, 2.) Erase all duplicates 3.) Sort it out alphabetically so I did this: [CODE]mystring = list(set(mystring.split(', '))).sort()[/CODE] But why when I go to call …

Member Avatar for HoneyBadger
0
124
Member Avatar for Contagious98

I cant seem to login into my crystal report viewer. It wants me to login with the user name and the password. I've already provided the UN and the PW during the crystal report database connection. I really do not know why it fails. I only have these codes. [CODE] …

Member Avatar for Contagious98
0
215
Member Avatar for infinitus

Hello guys ;) Im quite new to PHP and i run into a problem. I was given a PHP task to do and its got to be submited by 27th this month in my uni... unfortunately i was not attending any Web programming class as i was so into Java …

Member Avatar for infinitus
0
233
Member Avatar for cr7489

i have 2 methods to check if words appear within a piece of text, the method only checks for a word once but i want it to check more than once [CODE] while ($pos_words = mysql_fetch_assoc($pos)) { if (strpos($review_text, $pos_words['word']) !== FALSE) { $good++; } } //Get negative words and …

Member Avatar for diafol
0
234
Member Avatar for scarcella

Hi all, I have just coded this for my website, is there a way to improve this either by extending for a more general use or just improving my logic's. Thank you in advance. [CODE] function removeEmptyArray($array, $remove_null_number = true) { $new_array = array(); $null_exceptions = array(); foreach ($array as …

Member Avatar for scarcella
0
88
Member Avatar for kingsonprisonic

I am using WebBrowser Control... When form is loading i set webbrowser to navigate a website. Now this website running too much popup ads.. So each time webbrowser navigate a new popup window open out of my application.. Is their any way to stop that.. Thanks in advance...........

Member Avatar for kingsonprisonic
0
132
Member Avatar for _Nemesis_

Hi guys, Brief Background: I'm currently working on a project in which I wish to create an autonomous game agent capable of traversing 3D environments. To do this I would like to implement a custom path finding algorithm that works with a navigation mesh. The Problem: I'm currently looking at …

Member Avatar for _Nemesis_
0
174
Member Avatar for mrbungle

I've been at this for a few days, not making any progress, so I'm asking for help. I have an application you log into based on an ID number (example 45) In the app, there is a label. By default is has "lblID" in it, when when you log in, …

Member Avatar for ChrisPadgham
0
182
Member Avatar for eduard77

I am having a script that starts like this require_once "XML/RSS.php"; In the ini.php the path is set to "include_path = ".;d:\phpincludes" where I have an XML folder that contains the RSS.php file When I try to run it I keep on receiving the error Warning: require_once(XML/RSS.php) [function.require-once]: failed to …

Member Avatar for eduard77
0
139
Member Avatar for HoneyBadger

Guys I'm looking for a clean way of splitting a string into a list: I have this: [CODE]myString = 'blue, red, pink, purple'[/CODE] and I want this: [CODE]myString = ['blue', 'red', 'pink', 'purple'][/CODE] How do I do that?

Member Avatar for HoneyBadger
0
158
Member Avatar for ohblahitsme

So I have a function called start() and it has multiple if statements and I want all of them to run. [code=python] def start(): print """You have just woken up from a very long nap. You find yourself in a dimly lit cave. There is a patch of light in …

Member Avatar for woooee
0
288

The End.