post

Member Avatar
Member Avatar
+0 forum 6

Good day! I want to know how to pass a value to reportviewer textbox. I want to pass the value of a datetimepicker to reportviewer textbox. How can I do this? Both reportviewer and datetimepicker are in the same form. any help is much appreciated. Thank you.

Member Avatar
Member Avatar
+1 forum 3

In the good old days of VB6 I used to use this technique to communnicate between programmes, without using external files. In fact I could even set off the textbox interupt in the running programme so as it could do something once triggered. This being said, I can't get it working on dot net. Does any one have any idea on how to setup the same type of programme using dot net.

Member Avatar
Member Avatar
+0 forum 2

i have 2 class for example class a and class b. i need the string store at class a pass and use by class b, here is my code for class a and class b. class a public void actionPerformed(ActionEvent arg0) { JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileFilter(new FileNameExtensionFilter("Text Files", "txt")); fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); fileChooser.setAcceptAllFileFilterUsed(false); int returnValue = fileChooser.showOpenDialog(null); if (returnValue == JFileChooser.APPROVE_OPTION) { String test; File selectedFile = fileChooser.getSelectedFile(); test=fileChooser.getSelectedFile().toString(); } class b try{ a path = new a(); FileInputStream fis = new FileInputStream(path.test); BufferedReader br = new BufferedReader(new InputStreamReader(fis)); while((line = br.readLine()) != null) { tableModel.addRow(line.split("___")); } br.close(); } catch(IOException …

Member Avatar
Member Avatar
+0 forum 4

So what I'm trying to do is pass the values of one class to the other. So with the code i have i believe what is happening is im not passing the values. But im passing the referenced location. import java.util.Arrays; public class numbers { int[][] x = {{6,10,14,31,32},{12,23,12,11,22}}; public void setX (int[][] x){ this.x = x; } public int[][] getX() { return this.x; } } Theres the array with the values. import java.util.Arrays; public class Probability { public static void main(String args[]) { numbers aNumbers = new numbers(); int[][] x = aNumbers.getX(); for(int z=0; z<=x.length-1;z++) System.out.println(aNumbers.getX());; } } Heres …

Member Avatar
Member Avatar
+0 forum 5

I tried to create a context menu for a griedview and when i test it it works greacefully private void gridView1_PopupMenuShowing(object sender, DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventArgs e) { ContextMenu c = new ContextMenu(); DevExpress.XtraGrid.Views.Grid.GridView view = (DevExpress.XtraGrid.Views.Grid.GridView)sender; DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo HitInfo = view.CalcHitInfo(e.Point); if (HitInfo.InRow) { view.FocusedRowHandle = HitInfo.RowHandle; c.MenuItems.Clear(); c.MenuItems.Add("sample", sampsss); c.MenuItems.Add("sample", sampsss2); c.Show(view.GridControl, e.Point); } } private static void sampsss(object sender, EventArgs e) { MessageBox.Show("sample 1"); } private static void sampsss2(object sender, EventArgs e) { MessageBox.Show("12321344"); } the code above work as i wanted, then it comes in my mind that i am always using it. so i decide to create a static …

Member Avatar
Member Avatar
+0 forum 3

Hello, I need to pass an array from a VB6 application to another application. How can I do? Thank for help

Member Avatar
Member Avatar
+0 forum 2

I want to pass data from one function to another function in same controller.And then show that data on a view.This is my code parts.But it gives errors in view.Please can you help me? Model function getEmail($logindata) { $emailentered=$logindata['emailpost']; return $emailentered; } Controller public function Login() { $this->load->view('header'); $this->load->view('userLogIn'); if($_POST) { $logindata=array( 'emailpost'=>$_POST['email'], 'passwordpost'=>$_POST['password'] ); $login_confirm=$this->systemModel->loginManagement($logindata); $emailgot=$this->systemModel->getEmail($logindata); $data['emailgot']=$emailgotvalue; if($login_confirm){ $this->user($data); } } $this->load->view('footer'); } public function user($data=array()) { $this->load->view('header'); $data['emailgot']; $this->load->view('user',$data); $this->load->view('footer'); } View <?php echo form_input(array('name'=>'email','readonly'=>'true','value'=>$emaigot));?>

Member Avatar
Member Avatar
+0 forum 4

Hi Everyone, I've been working on creating this code for a project I've been working on but I can't seem to get it to work. I'm creating a service class that I can then pass to a client class that will read a list of cities that ends in a "*" and then for each city read a list of tempratures that ends with a "0". It then has to calculate the average temprature, highest and lowest, and then output them along with any tempratures over 100. I've talked to my professor and she told me that the solution is …

Member Avatar
Member Avatar
+0 forum 3

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'); $numRows = mysql_num_rows($sql); for ($i = 1; $i <= $numRows; $i++) { $crtRow = mysql_fetch_array($sql); $idCat = $crtRow["idCategory"]; $cat = $crtRow["category"]; print("<option value=\"$idCat\">$cat</option>"); } ?> </select> <tr><th>Choose collection: <tr><td><select name="collection"> <?php $sql=mysql_query('SELECT collection from collection order by collection'); $numRows = mysql_num_rows($sql); for ($i = 1; $i <= $numRows; $i++) { …

Member Avatar
Member Avatar
+0 forum 20

Hi! I am designing a form which contains a datagridview which can display all customer orders. I also have a button inside the datagridview so that if a user clicks the button it will open another form which contains the items which the customer ordered in a datagridview. I am using the code below on the first form. private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { Item i = new Item(); i.Show(); } Item is the name of the second form. The second form contains the following code in the form load event. SqlConnection con = new SqlConnection(Properties.Settings.Default.Stock_ControlConnectionString); try { con.Open(); …

Member Avatar
Member Avatar
+0 forum 3

Thanks for the support! I have been working on a program with 7 classes, one the main and one starts the program, and I have been troubleshooting for a few hours trying to see why for one of the output constructors I'm not getting the classes to update the output. A class called OfficeVisit calls the class Appointment, which then calls the classes MyDate and MyTime to output their data input by the user back through OfficeVisit's output cosntructors. But I'm not getting the right output for some detail(s) that I can't find. While other classes that use MyDate and …

Member Avatar
Member Avatar
+0 forum 1

I have a two forms that I created using the design view of Visual C# Express (Form1 & infoEntry). I set the properties to of the listview in Form1. public System.Windows.Forms.ListView toSend; I've invoked the second form and sent some data using code below. Works great. infoEntry dataWindow = new infoEntry(); dataWindow.filePath(selectedFile); \\sending some data to new form dataWindow.ShowDialog(); I'm running into a problem when I attempt to send data back to Form1. The following code is within a button_Click string patientid = (patientidSender.ToString()); string shift2 = (shift2Sender.ToString()); string[] row1 = { ("value1"), ("value2") }; Form1.toSend.Items.Add("test").SubItems.AddRange(row1); \\<--- this line causing …

Member Avatar
Member Avatar
+0 forum 3

Hi all i have a form as follows: ** file1.php** <form action="<?php echo $editFormAction; ?>" method="POST" enctype="multipart/form-data" name="tblMovment" id="tblMovment"> <input name="MovDate" type="text" /> <input name="MovAmount" type="text" /> <input type="submit" name="submit" id="submit" value="add invoice" /> </form> 1. **I want to pass the Auto increment ID of the table above to another page (attach.php) then i can use it $_POST['ID'] to attach a file to the above "Invoice" ? ** 2. **Is there any way to attach the files in the same form (I have two separated mySql Table one for Files(that ATTACHED to Invoices table) an the other for Invoices)??**

Member Avatar
Member Avatar
+0 forum 2

Hi, I am trying to fix this simple coding problem for many days, but its not working everytime, I am posting in hope that some one will help this time. I am having two pages Page1.php and Page2.php. Page1 is having a text box when I enter some code here its not receiving exactly in Page2 everytime its missing some characters, because of that I am not able to use the received code in Page2. **Page1.php** <form name="f1" method="post" action="/Page2.php"> <input type=text name=url> <input type=submit> </form> **Page2.php** <?php echo stripslashes(html_entity_decode($_POST['url'])); ?> **Example** I entered below value in Page1's text box …

Member Avatar
Member Avatar
+0 forum 6

Good Evening (in CET) to everyone. I am in need of a bit of help. I have the following cpp and.h files: dirmain.cpp #include "dirseq.h" #include <iostream> #include <algorithm> #include "dirseq.h" #include <string> struct IsEven { bool operator()( int i ) const { return i % 2 == 0; } }; const int max = 1024; int main() { int yourMark = 1; DirectionSequence<int> di; di.push_back( 1 ); di.push_back( 2 ); di.push_back( 5 ); const DirectionSequence<int> cdi = di; di.change_direction(); di.push_back( 3 ); di.push_back( 7 ); DirectionSequence<std::string> ds; ds.push_back( "Test" ); DirectionSequence<double> x; for( int i = 0; i < …

Member Avatar
Member Avatar
+0 forum 7

Hai, I have 2 question to ask about vb.net. Now i'm using Visual Studio 2005 with connection MySql... 1. how if I want to passing the data from database to the textbox by SEARCH button. I Have 1 SEARCH button and 3 textbox [txtname],[txtage],[txtaddress] and to pass it also on datagrid... 2. I have a id_Student starting with S001 in database...and I want the id is increment when new data is added. The id_Student is display using lblID_stud Thanks in advanced. Hope anyone can help me to solve/handle this problem...

Member Avatar
Member Avatar
+0 forum 6

Hi all, can someone tell me why I am unable to concatinate the variable $id to the members.php ? Its driving me mad. . . [code] $id = $row["id"]; $_SESSION['SESS_MEMBER_ID'] = $id; setcookie("id", $id, time()+86400); $securecode = $row["securecode"]; $_SESSION['SESS_SECURE_CODE'] = $securecode; setcookie("securecode", $securecode, time()+86400); $creff = $row["creff"]; $_SESSION['SESS_CREFF'] = $creff; setcookie("creff", $creff, time()+86400); /* Login and go to members area */ //header("location: members.php?id=" ' .$_SESSION['id']. '); //header("Location: members.php?id=$id"); // //header("Location: members.php?id= ' .$_SESSION['SESS_MEMBER_ID']. '") //securecode.php?id= //header("Location: members.php?id='.id.'"); //header("Location: members.php?id=$id"); header("Location: members.php?id=<? print '.$id ?>"); [/code]

Member Avatar
Member Avatar
+0 forum 2

Hi all, I would like to call a makefile with a particular variable and value so that the variable is used to make decisions inside the makefile. Thanks

Member Avatar
Member Avatar
+0 forum 1

Hi all, I would like to call a makefile with a particular variable and value so that the variable is used to make decisions inside the makefile. Thanks

Member Avatar
Member Avatar
+0 forum 1

I'm trying to pass a list from a function to another using templates but get this error message: [QUOTE]/home/mattias/CodeBlocks/SpelBeta/src/player.cpp|64|undefined reference to `void Ground::bulletsCollition<Bullet>(std::list<Bullet, std::allocator<Bullet> >)'|[/QUOTE] Here is the code: [CODE] //In the function calling the template function (*blocks).bulletsCollition(player_bullets.getList()); //In header that the getList is declared #ifndef BULLETLIST_H #define BULLETLIST_H #include "entity.h" #include <list> struct Bullet:public Entity { public: Bullet(int x,int y,int w,int h, int vel, int dmg):Entity(x,y,w,h){x_vel = vel; damage = dmg;}; int x_vel, damage; }; class BulletList { public: BulletList(); void add(int x,int y,int w,int h, int vel, int dmg); void move(int); void display(SDL_Surface*); std::list<Bullet> getList(); protected: private: std::list<Bullet> …

Member Avatar
Member Avatar
+0 forum 1

i want to read parameters from a file. but the program reads all parameters as if they are zero.any help? here is the code [CODE] typedef unsigned long int WORD; unsigned long int parameters[2]; WORD pt1[2]; void readConfig() { char a[3]; FILE *p; p = fopen("config.data", "r"); if (p) //we are reading { while(!feof(p)) { fscanf(p, "%s %lu", a, &parameters[0]); parameters[0]=pt1[0]; fscanf(p, "%s %lu", a, &parameters[1]); parameters[1]=pt1[1]; } } else //we have an error, could not read { printf("Config file could not be read.\n"); //give warning } fclose(p); } void main() { WORD i, j, k, pt2[2], ct[2] = {0,0}; …

Member Avatar
Member Avatar
+0 forum 4

I'm trying to make a Palindrome program, that basically returns whatever you enter, just backwards. For some reason, the cNewArray is not only couting the original array backwards, but also the original array. For example if I enter "Hello" it returns "Hello = olleHHello". I'm very new to referencing pointers and addressing and all that stuff, and I think that might be what's causing it. Can someone help? [CODE]#include <iostream> int Absolute ( int nOrigNum ) { int nAbsolute = 0; if ( nOrigNum < 0 ) { while ( nOrigNum < 0 ) { nOrigNum++; nAbsolute++; } return nAbsolute; …

Member Avatar
Member Avatar
+0 forum 7

Hi all, been dipping my toe into OOP and am getting on OK, but I'm hitting a bit of a wall with a current project. classes: db (a PDO extended class) User Timetable The db is just a few shorthand ways of running PDO The User is just for handling the current user's details, e.g. profile etc. The Timetable is for showing the user's current timetable (and a few other things) I've currently got this thing going on in my page: [CODE]include("includes/config.php"); include("class/class.DB.php"); include("class/class.User.php"); include("class/class.Timetable.php"); $db = new db($config['db']); $u = new User($db); $t = new Timetable($db,$u);[/CODE] [COLOR="Red"]where I pass …

Member Avatar
Member Avatar
+0 forum 2

Hi folks, I have written code to random access files in c++ . I got result without creating a method for write a record to the file. I have given the code snippet below. [code] #include<iostream> #include<fstream> #include<iomanip> using namespace std; class student { int rollno,marks; char name[20]; fstream fpointer; public: void show(); void get(); }; void student::get() { cout<<"Enter the name of student:"; cin>>name; cout<<"Enter the roll no. of student:"; cin>>rollno; cout<<"Enter the marks of student:"; cin>>marks; } int main() { student record; fstream file; file.open("student.txt",ios::in|ios::out|ios::binary|ios::app); char flag='y'; int i=0; while(flag=='y'||flag=='Y') { record.get(); file.seekp(i*sizeof(record), ios::beg); file.write((char*)&record,sizeof record); cout<<"Enter another …

Member Avatar
Member Avatar
+0 forum 5

Hi experts, im new to coding and i really need help for this. i have done a shopping cart calculation using javascript my question now is, HOW TO SEND JAVASCRIPT VALUE INTO DATABASE (MYSQL) ?? [CODE] <?php require_once 'library/config.php'; require_once 'library/cart-functions.php'; $action = (isset($_GET['action']) && $_GET['action'] != '') ? $_GET['action'] : 'view'; switch ($action) { case 'add' : addToCart(); break; case 'update' : updateCart(); break; case 'delete' : deleteFromCart(); break; case 'view' : } $cartContent = getCartContent(); $numItem = count($cartContent); $pageTitle = 'Shopping Cart'; require_once 'include/header.php'; // show the error message ( if we have any ) displayError(); if ($numItem …

Member Avatar
Member Avatar
+0 forum 2

Hello, I have a class Pdisk [CODE] class Pdisk { public : Pdisk(string diskname, int numberofblocks, int blocksize); private : string diskname; int numberofblocks; int blocksize; }; [/CODE] Now I want to make a class filesys which can access an object of class Pdisk. I am not sure how to pass this object. filesys.h: [CODE] class fileSys{ public: Filesys(Pdisk& disk); private: Pdisk disk; }; [/CODE] filesys.cpp file: [CODE] Filesys::Filesys(Pdisk& disk){//...} [/CODE] In my driver program I want to call [CODE] Pdisk disk("disk",64,128); fileSys fsys(disk); [/CODE] I am using Visual C++ and get the error that there is no default constructor. …

Member Avatar
Member Avatar
+0 forum 2

[CODE] function func1(str) { document.getElementById("txtHint").innerHTML='<Br>Graph type: <select id="sel" name="sel" onchange="func2(str)"><option value="1">1</option><option value="2"> 2</option></select>'; } function func2(x) { some codes.... } [/CODE] In Above coding, i want to pass the "str" variable to "func2" in onchange . but above code is not working. Can anyone Please help me..?

Member Avatar
Member Avatar
+0 forum 2

I am having an issue with the WHILE LOOP variable being past via POST to the next page. The first page provides the query results for all the categories in which a user has provided a referral. When the user selects one of the listed categories, it is supposed to take them to the next page displaying the those subcategories in which the user has provided a referral. From there, the user will be able to select a subcategory to drill down on a particular referral. The problem: When the query runs on the first page (my_referrals.php) the returned result …

Member Avatar
Member Avatar
+0 forum 1

I'm a NEWBIE and I have been stuck on this for days. I have one table that has the following rows: rid = Referral ID category = Category subcategory = Subcategory rbusiness = Referred Business Name rcontact = Referred Contact Name etc.. I have created the form (referral_input.php) that allows the user to input their referral data including category and subcategory. I have also created a page (my_categories.php) which lists all the categories in which the user has a referral using a WHILE LOOP. From there, I wish for the user to select one of their categories and then be …

Member Avatar
Member Avatar
+0 forum 9

The End.