64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for AndreRet

I'm not sure how to write this in php, so any help will be appreciated - In vb6, I would have had a function similar to this code - [CODE]Function GetReserve() Dim xAmount As Integer, xValue As Integer Select Case xAmount 'Where xAmount is an Integer Case Is = 0 …

Member Avatar for AndreRet
0
173
Member Avatar for Mike Askew

The code for this is: [CODE=VB.NET]'IMAGE HANDLING Dim bytes() As Byte = DS.Tables("Location").Rows(0).Item(4) Dim ProductImage As Image = Image.FromStream(New System.IO.MemoryStream(bytes)) pic_ProductImageDisplay.Image = ProductImage pic_ProductImageDisplay.Load()[/CODE] The error occurs line 3 stating "ArgumentException was unhandled: Parameter is not valid." Any idea on a solution to this problem?

Member Avatar for Unhnd_Exception
0
214
Member Avatar for Nevillelajru

hi i have a datagrid view that is filled with fields from a database. until filling this datagridview it is alright. in this form i have a button delete and a textbox. when i press this button it takes the number in the field which will be the primary key …

Member Avatar for Nevillelajru
0
298
Member Avatar for spe_eddy

I can't work out why when i try to print the list(listProb....s) it prints the empty list, i'm not setting them to the empty list after this code or anything, and when i print the normDistProb's on their own it prints fine): [CODE]for i in range(0,12): listProbFog.append(normDistProb(dayValues[i], fogAve[i], fogVar[i])) listProbSnow.append(normDistPr...ob(dayValues[i], …

Member Avatar for TrustyTony
0
182
Member Avatar for hness1

After searching around for along time... I've found nothing. I need to be able to grab an image from an imagelist. I tried searching through the properties and methods, but found nothing that looked like it would help. [CODE] begin PicArray[WhichCol, WhichRow].Picture := {Image from imagelist} end; until Imageindex[WhichCol, WhichRow] …

Member Avatar for Wolfgan
0
2K
Member Avatar for smandape

Hello experts, I am trying to extract data from XML file using XSLT. I am trying to code a general XSLT code that can handle similar XML files that may differ a bit from each other. the XML code I am working on can have the following 4 scenarios for …

Member Avatar for xml_looser
0
370
Member Avatar for 8.brahim

I want to draw an image at X Y position when the user click the mouse so I'm using an InternalFrame with layout set to NULL , inside a JFrame with Layout free - using netbeans here is the image class [CODE=java] package myPak_1; import java.awt.*; import java.awt.image.*; import java.io.*; …

Member Avatar for 8.brahim
0
233
Member Avatar for schrope

I need help i am not sure if i am on the right track. i have to write a program to calculate the night of nights someone has to stay and what size bed they want. than i have to give a total of cost plus 6% sales tax. her …

Member Avatar for txwooley
0
310
Member Avatar for karthik_ppts

Hi frendz, I need to calculate the decimal latitude and longitude value from the following latitude and longitude value. latitude 11006805N longitude 076577304E

Member Avatar for karthik_ppts
0
103
Member Avatar for rpv_sen

Hi I am using Xampp Server in my machine, i used php mailer (class.phpmailer.php), when i run the mail file, i am getting the below error msg Could not execute: /var/qmail/bin/sendmail Please help me to solve this issue.

Member Avatar for rpv_sen
0
3K
Member Avatar for dospy

recently i understood at last how can i store more values in an int with bytwise operators, also, i have read that #define directives are evil for a number of reasons. one of them: [CODE] #define SEVEN 2 + 5 int result = SEVEN * 5; cout << result; // …

Member Avatar for dospy
0
171
Member Avatar for Atistus

I am quite new to Python programming, just started about a week ago, and was just designing a simple menu for a simple guessing game. I have browsed Google and other websites trying to find snippets of code that may help me but my searches haven't turned up anything. I've …

Member Avatar for Atistus
0
176
Member Avatar for ayesha789

Hi, I have 3 feilds in my invoice processing Table. [LIST=1] [*]Submet [*]Return [*]Resubmitted [/LIST] Now I am using this query [CODE=mysql]SELECT `SRNo` , `VenName` , `Submet` , TO_DAYS( NOW( ) ) - TO_DAYS( `Submet` ) AS Days FROM `invmain` WHERE `Status` = 'SENT TO PAYABLE' AND `Submet` != '0000-00-00' …

Member Avatar for ayesha789
0
224
Member Avatar for lxXTaCoXxl

Okay so I got the original working and is fairly simple. Only problem is I can't figure out how to set it up to scroll one color section after the other. Like this pseudo code would be: [CODE]if (color1 >= 255) { color2++; } if (color2 >= 255) { color3++; …

Member Avatar for abelLazm
0
119
Member Avatar for visom

Hi, I'm making a program that finds the number of days between two dates (so far you can only put in 1 date because my code is incomplete). The code is incomplete right now but my problem is that the problem is that my code doesn't return a needed value. …

Member Avatar for visom
0
105
Member Avatar for kelvnese

hi everybody, i'm doing a ASP.NET project with VB.unfortunately,when i'm using Logout control, i still can not logout. So i can't logout.. And i have tried to delete the browser cache, but no luck.. What could be wrong? :'( [CODE] <asp:LoginView ID="LoginView2" runat="server"> <AnonymousTemplate> <asp:Login ID="Login1" runat="server"> <LayoutTemplate> <div class="username"> …

Member Avatar for kelvnese
0
161
Member Avatar for juan92

currently i am taking a java class, and out professor is introducing it with the language processing so we get the idea of how things work. he moentioned that processing comes from java, so that's the reason i posted it here. i made a really simple game somewhat of a …

Member Avatar for juan92
0
139
Member Avatar for shyla

Create a console-based application that computes the price of a desk and whose main() method calls four other methods a method to accept the number of drawers in the desk an input from the keyboard. this method returns the number of drawers to the main method a method to accept …

Member Avatar for shyla
0
700
Member Avatar for lxXTaCoXxl

Okay so I've been trying for a few days now and just can not seem to figure this algorithm out. Right now I'm trying it with a while loop but still not working. Basically here is my snippet. It's on a timer for 10ms. [CODE]void colorScrollRotation(object sender, EventArgs e) { …

Member Avatar for lxXTaCoXxl
0
145
Member Avatar for jackmaverick1

Hi, I'm trying to make my own library so that I know the names of the functions and can use them more simply. Also, I normally don't get the File I/O right so if I write the Library once, then I can use it over and over again (without having …

Member Avatar for jackmaverick1
0
180
Member Avatar for Tamlyn

Hey everyone :) Hope you can help Here is what I've done with the instructions given: I need to know the average price difference between the cash and credit prices. But i'm pretty sure that only comes in at the end. Here is what my this function is supposed to …

Member Avatar for Tamlyn
0
121
Member Avatar for Mike Bishop

I am writing a database and need to post a value in a lable to a sql field. the sql datatype is set to money. when posting i have CMD.Parameters.addwithValue("@Claim", LBCLAIM.text) when posting i gett an error cannot convert a char vaule to money. the char vaule has incorrect syntax. …

Member Avatar for Unhnd_Exception
0
102
Member Avatar for aaraf

[B]hi since I began programming in php the most thing I used is form but today I wanted to use form inside an html page that have a css style BUT THE FORM INSIDE IT DO NOT WORKED IT IS VERY SIMPLE AND RIGHT BUT IT DON'T WORK i used …

Member Avatar for aaraf
0
167
Member Avatar for benjybob

Hello there, im writing code for my asteroids game and am nearly finished but ive come across a problem when trying to load the file the save game is written like this and works perfectly fine, it saves the things i want to a text file: [CODE]void WrapGame::save() { cout<<"enter …

Member Avatar for WaltP
0
226
Member Avatar for pebesoft

Greetings, This problem kept me searching for a solution for days. I hope someone can help me. I can't find spelling errors Below is part of the form. (The whole form can be had at [url]www.pebesoft.co.nz/ir4312.htm[/url] The other part of the form works OK A Var dump does not show …

Member Avatar for markmatt
0
220
Member Avatar for Nevillelajru

hi i am looking for some code and step by step instructions for the c sharp encryption and decryption process. if anyone is willing to send me some instructions i would be grateful. thanks Neville

Member Avatar for Nevillelajru
0
331
Member Avatar for gspeedtech

I have a stored procedure that retrieves customer data from one table and calls 2 UDFs to perform a calculation on data obtained from joined tables for accounting data. The calculation needs to be performed for every row based on matching criteria of previous records. The query returns very few …

Member Avatar for Fortinbra
0
234
Member Avatar for choudhuryshouvi

Hello, I am creating an automobile finance system for retail bike dealer. The system contains features using which inventory, purchase, sales and party (customers, suppliers, manufacturers, financers) details can be maintained. Here inventory indicates to vehicles only which can be two wheeler, three wheeler and four wheeler. A lot of …

Member Avatar for choudhuryshouvi
0
132
Member Avatar for terexberd

Could you tell me why programmers use this.variable ex. (this.miles) in constructor, and what is the advantage of using it?

Member Avatar for jon.kiparsky
0
141
Member Avatar for newbie_in_c

Hello all, I've a small question. I wanna use a function void myfunction(int **array1, int **array2) where array1 and array2 shoud be [4][4]. I've added 2 arrays int myarray1[4][4], myarray2[4][4]; and called my function like this: myfunction(&myarray1[0], &myarray2[0]); I've got the following warning message : warning: passing argument 1 of …

Member Avatar for newbie_in_c
0
139
Member Avatar for orwell84

I am relatively new to perl, and I'm having a problem with loops. I'm trying to get a program for a simple number guessing game to repeat itself until you get the right number. Here is the code: [code] #!/usr/bin/perl -w $thinkingof = int(rand 10); print "Pick a number 0 …

Member Avatar for mdawg252
0
839
Member Avatar for musikluver4

I have a JFrame with 2 JPanels...my problem When I attach one of the JPanels to the JScrollPane object, it encompasses the whole JFrame, instead of just the JPanel I said to attach to. The scrollBar goes all the way up to the top of the JPanel I don't want …

Member Avatar for musikluver4
0
752
Member Avatar for initialise

Hi there, I have searched for an answer to this problem but cannot find one even though there is probably a very simple solution. I would like to pass an int to a function in pthread_create. I can do that easily. The troublesome part is when I have to cast …

Member Avatar for initialise
0
7K
Member Avatar for azegurb

hi All I have script that dont has any forms but there used $_POST method I dont understand that function and why there used $_POST method if there is not any Form here is script [CODE]<?php define('INCLUDE_CHECK',1); require "connect.php"; if(!$_POST) { if($_SERVER['HTTP_REFERER']) header('Location : '.$_SERVER['HTTP_REFERER']); exit; } ?> <!DOCTYPE html …

Member Avatar for azegurb
0
114
Member Avatar for kay21

Hi everyone, I have a couple of questions regarding ER to Relational Schema Translation. 1. Do I treat a subclass entity as strong entity 2. Do I need to merge entities where most of the attributes are the same Please advice. Thank you

Member Avatar for kay21
0
288
Member Avatar for bhallarahul

[CODE] import java.sql.Statement; import java.sql.Connection; import java.sql.SQLException; import java.sql.DriverManager; import java.sql.ResultSet; class db { public static void main(String arg[]) { Statement statementObj=null; Connection connectionObj=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); connectionObj=DriverManager.getConnection("jdbc:odbc:sensorData","",""); statementObj=connectionObj.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); System.out.println("do not worry ho ga yr ho ga"); statementObj.executeUpdate("INSERT INTO hardwareData (Time, Date, humidity, Temp, DiesalLevel) VALUES('1','12','3','s','a')"); connectionObj.close(); } catch(ClassNotFoundException …

Member Avatar for Ezzaral
0
312
Member Avatar for Vbs88

Hi guys, I'm new here and in dire need of help for a problem that I've worked on hours. I created a table 'tblProductCat' in the webform and wanted to populate the table with the code below: [CODE]Imports System.Data Imports System.Data.SqlClient Partial Class ProductCategories Inherits System.Web.UI.Page 'Define DA and DS …

Member Avatar for Vbs88
0
178
Member Avatar for anders10

Hello! I have a minheap class that is implemented as a priorityqueue and it works fine as far as to the iterator that I have to implement as a innerclass. But I can't get it to work properly. Here is part of the code: public class MinHeap<E> extends AbstractQueue<E> implements …

Member Avatar for anders10
0
142
Member Avatar for v_janssens

Hi, I'm writing a program for structural engineers that consists of a number of inherited classes. Specifically, I have a main() file which includes a class [I]element[/I] which includes a class [I]node[/I] which includes a class [I]matrix[/I]. [I]element[/I] includes variables of type [I]matrix[/I] and [I]node[/I], and [I]node[/I] includes variables of …

Member Avatar for v_janssens
0
196
Member Avatar for @Kui

Hi. I'v created a program with a Ms SQL database, registration form and login form. Everything was working well so i detached the database and added it to my program as an existing item before so as to deploy the program. But now i recieve an error when i try …

Member Avatar for @Kui
0
132
Member Avatar for swathys

hi, If found the [COLOR="Green"]DbaseLicenseKey = LicenseKey [/COLOR] match i want to write the value to registry but the problem is....i have no idea how to code at this part [COLOR="Green"]AxActiveLockBP.LicenseKey[/COLOR] as it gives the error message.... error message = 'LicenseKey' is not a member of 'Axactivelock1884.AxActiveLock'. Please help!!! [CODE] …

Member Avatar for Nikon70
0
166
Member Avatar for rannamaa

Hello, i have a problem. [CODE] int index2 = 1; foreach(Circle circle in arrays) { if(index2 > 1 && index2 < 6) { Circle c1 = (Circle) arrays[index2 - 1]; Circle c2 = (Circle) arrays[index2 - 2]; Console.WriteLine("Radien på cirkel {0} är {1} och arean är {2}", index2, circle.getRadius(), circle.getArea()); …

Member Avatar for rannamaa
0
206
Member Avatar for mirvine

Ok so let me start off by saying I am not a NOOB. There... So i need help trying to figure out an export of just my 2 colums from a table. Got it done. Now i need to make sure that I only export from a date range and …

Member Avatar for mirvine
0
144
Member Avatar for bunnyali2011

Hello who knows how to create a search box in Visual Basic? I want the search box based on streamreader. In proper terms, when I will input a text, it has to read on a text file in drice C. I know the streamreader code but don't know the code …

Member Avatar for Nick Evan
0
776
Member Avatar for mmartino

Hello, I am trying to write a templated linked list, and I am having some difficulties with the add() function. It seems like different behavior occurs depending on how I add to my list, but my two test cases don't seem that different to me. I'll post the list.h, and …

Member Avatar for Fbody
0
178
Member Avatar for ashrafu1

Hello every one am in real trouble now. i am in my 1st and last sem of my programing course. i need to write a program that can add delete display and update record. i got this program so far but the real prototype works fine for this program and …

Member Avatar for ashrafu1
0
183
Member Avatar for begueradj

Hello, I have a form from which I post some data into 3 tables: when I click on the submit button I don't get any error message from mysql_error(); but when I look to my 3 tables I see no one of them has received the data I just posted …

Member Avatar for begueradj
0
261
Member Avatar for Dean_Grobler

Hi there, I understand that this question might be better off in "hardwareAndSoftware/LinuxAndUnix/LinuxApplicationsAndSoftware". But the truth is, that it takes for ever for someone to respond to posts there, because I don't think anybody visits that forum alot. Anyways, back to the point... I'm trying to install the Java 1.6 …

Member Avatar for mKorbel
0
261
Member Avatar for Climber Ty

So I am working on this XML project to create a small list of favorite DVDs, etc. Maybe I missed it (or that I may have not gotten this far in my reading) but in my DTD I want to restrict movie_review to only allow (G | PG | PG-13 …

Member Avatar for Climber Ty
0
289
Member Avatar for tangentplane

Hi, I have been trying to use the following code: VendingDisplay.h: [CODE]#include <stdio.h> #include <string> #include <vector> #include <iostream> #include "VendingMachine.h" class VendingDisplay { VendingMachine vend; public: VendingDisplay(VendingMachine); VendingDisplay(); void DisplayMenu(); void GetUserInput(int); int respondToUserInput(int); void processOrder(int); int processCorrectCash(float); };[/CODE] VendingDisplay.cpp: [CODE]#include <vector> #include "VendingDisplay.h" #include "VendingMachine.h" #include "Cigarette.h" //#include …

Member Avatar for thekashyap
1
4K

The End.