Pass Variables From Php Script To Program Application?
Mar 14, 2012
I am developing an VB.NET application that reads data from the serial port and tcp socket, then I'm processing this data and store it in Database server. This application will be started all the time as long as the computer is started. On the server there is installed an apache server with some php scripts representing the "visual interface". From there the users can see the readed data from the VB app. The need is when an event appear in the apache server (such as button pressed), some data to be passed to the running VB app, and eventually trigger an event on it. I've considered some variants like start an timer that reads continuously some tables from the database that the php script writes onto, or read an xml ot text file, but I think that this may slower the communication and it is a source of exceptions or errors.
For example: An user opens a webpage, just to say test.php. On the page there is a button. The user pushes the button. The result of pushing the button has to trigger an event on the VB app and cause sending data trough the serial port or tcp socket. OR - The VB app has a timer that scans for pressing the button on the test.php.
View 3 Replies
ADVERTISEMENT
Aug 10, 2010
I am writting a VB .net (3.5) applivcation which references a COM object. I can call methods on the COM object fine provided that they don't require any variables to be passed. I have been told that you can only pass a maximum of one varaible to a COM object, I really don't believe that it true
for example
objsession.connect()
works fine
but
[Code]...
View 6 Replies
Nov 28, 2011
1) when i click a listbox the values are displayed in respective fields from database.When i click PROCEED TO NEXT STEP in SLIDE-2 i get slide-3 where i get all values of Slide -2(FLIGHTID,FROM.TO)..Now the problem is when i press BACK and select new selection from listbox i am not able to get new values in this SLIDE-3 .I am getting the old values only..2) I declared public variables and sent all values to SLide-2 but when i press BACK and again select a value from LISTBOX i m getting no value in SLIDE-3
View 3 Replies
Sep 6, 2009
I am having trouble passing variables between forms. Ive tried many methods but none seem to work. The first method I tried was to dim a public variable on the first form and call it on the second....no success
Form 1:
Public cliCode as string
cliCode = me.tbClientcCode.text
Form 2:
dim clientCode as string = form1.clicode
or
Form 2:
dim clientCode as string
On the Form2 load event....
clientCode = form1.clicode
With method 2 I created some classes on which form 1 loads and form2 access........
Public
Class frmClient
Private db As New ClientDataContext
Public clientInstance As New BusinessLogic.classClient
Public cliCode As String
[Code] .....
View 18 Replies
Mar 6, 2010
Code below just allow me to pass only one variable at one time..the code below show how to pass the platelabel to label3..
how can i pass 2 variable in the same time..[code]...
View 5 Replies
Nov 10, 2011
I know this should be easy but I'm either having a brain fart or I'm just more inept than I thought; probably a combination of the two.
Passing a value to a form on startup is a piece of cake, but I don't think I've ever had to do the following before in all my ooooh, 8 months of programming:
I have a main form with a button and a textbox. The button opens another form with a datagridview. What I want to do is pass the selected value from the DGV back to the textbox on the first form.[code]...
View 8 Replies
May 20, 2009
I'm practicing creating a website for a test, although I am having trouble passing varialbes between the webpage with which the user logs in, and the web page in which the user sees/amends their details (it's an online bank).
Basically, I want the user to enter their customer ID and password, then click on the 'Login' button. When the user clicks on this, I want to display their details based upon their login info (ie their own, and nobody else's bank details).[code]...
View 6 Replies
Dec 5, 2011
if this is a dumb question. I don't ever have to write anything in VB.NET.But I am passing variables named "name" to a function and sometimes it may be 1 name or 2 names, etc. I want to check in the function if its only 1 name don't add a comma, if it's 2 names add a comma. Is there a way to get how many "names" there are?
EDIT: Added my ode to make my question a little more clear. sorry for not doing it before.
My Code:Public Function GenerateCSV(byval str as string, byval str1 as string, byval str2 as string, byval GrpName as string)
[Code]...
View 4 Replies
Mar 25, 2010
I'm working on integrating my companies back-end system with paypal, on our current website.I have done paypal integration before, but this company is a middle-ware provider that allows us to hold an order until it ships.They have provided a very low-level example of implementation, but leaves some gaps in a true implementation on a back-end system. They have each method, essentially, have it's own aspx page that sends data to a page, that contains a javascript that autoposts to a url, with 3 hidden variables.
View 1 Replies
Jun 21, 2012
Passing variables from .bat file to vbscript. I have .bat file that launches test.vbs. I need to pass variable defined in the batch file inside the .vbs file.
the batch file contains the code
set /p var= please enter the value: cscript test.vbs "%var%"
Where as test .vbs has the following codes
Dim StrText
MsgBox StrText
In my requirement value assigned to variable 'var' in batch should assign to StrText variable in the test.vbs and then it should display in VB message box.
View 3 Replies
Aug 14, 2009
Is there a way to pass variables into a form that is shown as a dialog?Dim frmCreateCSVFile As New CreateCSVFile Dim returnValue As DialogResultreturnValue = frmCreateCSVFile.ShowDialog()
It doesn't seem to find the variables when I use the form name.
dtpFirstEndDate.Value = ControlChartsCSV.dtpFirstEndDate.Value
dtpLastEndDate.Value = ControlChartsCSV.dtpLastEndDate.Value
View 4 Replies
Sep 9, 2010
I have a project that I have set up a menu item Setting witch calls a Dialog calledDialogSettings on this dialogI have a tree view that selects a user controls that I can change the settingsbut I am having a problem passing variables to and from the main program to the UserControll so I'm unable to show what the setting is and unable to change the variable that the setting is for
View 2 Replies
Nov 11, 2010
What is the best way to pass a variable from an OnClick event. To elaborate I would like to bind some data to the button and then when that button is pressed I would like to pass that data back to the code behind and do something cool with it.[code]...
View 1 Replies
Aug 3, 2011
I have a gridview and use a session to pass the variables from the page to an edit page. This works perfectly, until you search for a number. When you search the correct record displays in gridview, but when you click edit, it passes the wrong record.
Private Sub gridview1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing
Session("wr_id") = GridView1.Rows(e.NewEditIndex).Cells(2).Text & "~/~" & _
GridView1.Rows(e.NewEditIndex).Cells(3).Text & "~/~" & _
GridView1.Rows(e.NewEditIndex).Cells(4).Text & "~/~" & _
[Code] .....
I realize not all of the code is pasted in here, because it would take too much space. Any Ideas? I'm guessing it has something to do with e.NewEditIndex
View 2 Replies
May 22, 2009
I want to pass a few variables to another page. Currently I'm using response.redirect and passing the variables in the url. I'm not really interested in using Session Variables. Is there a way to pass hidden variables in .NET to a completely different form?
View 4 Replies
Nov 20, 2011
I'm developing a web application that requires the user to log in using forms authentication. inside the webpage you need to download a desktop application that requires to login to the same system too. Is there a way to transfer the current logged credentials from the web application to the windows desktop application without need to login again?. Both applications shares a Login object from an vb.net interface.I tried to save the IP address in the Database but that don't work for me because the website needs to be accessed inside and/or outside of the company and the user cannot login twice in different machines.
View 2 Replies
Aug 15, 2009
I was wondering if it was possible to pass data from one vb.net application to another vb.net application? If yes, how is this done?
View 5 Replies
Dec 5, 2011
I had to write a program for my class today(I don't like VB.NET, I like Java though) that created an Exception. Is it good practice to set variables to Nothing at the end of the program? In Java, there is the garbage collector so it will automatically delete variables if they are not used again. I don't know if VB.NET has this so should I keep what I have at the end of my code? [code]
View 10 Replies
Apr 19, 2010
I am trying to build a game (out of fun) similar to those text based games like Wars, iMobster (which can be found on Facebook/iPod). And I came to the point where I need to create a Save/Load system. My game currently has 50-ish variables, and it would be nice if there would be a way to save them in the application themselves, so when it is opened the next time they are all there. I know I can write the variables to a .txt file, and then pull them from there, but those are easy to modify, plus that means one file for each variable (right? Unless there is a way to save all my variables into 1 .txt file?).
View 11 Replies
May 27, 2009
When working with a collection of forms that the user must step through, is it better to pass the data foward when creating a new instance of that form, or is it better to call a function from the previous form? I have some code written that calls the previous routine, and it looks ugly, and I can't quite think of a reason why it was done that way. The only reason I could come up with was if the data was large, and there was a good chance that the user wouldn't use the data except in a special case.
View 7 Replies
Feb 3, 2009
I'm sure this is possible but I've got no clue of what I'm looking for to even start to learn this. Basically I want to create a form that can load data from one software application and feed it to another.
Is it possible to change settings in other forms by another piece of software like if there was a flag = True and I wanted to change it to flag = False or instead of loading Dim processorID As String = String.Empty I can input Dim processorID As String = 1234
View 8 Replies
Mar 3, 2009
I have a .Net 3.0 application that needs to pass an integer to another program on the same machine. I was using a WCF service to do this, but ran into user rights issues when trying HOSTING the service on the local box.
View 4 Replies
Jan 12, 2010
I am currently trying to program an online drawing program using the HTML5 canvas.the thing is, I need to have the current canvas saved somewhere globally. Static variables work, but they do not get shared across a Webgarden. This results in two different drawings being created.I will have to somehow create a new application object which is shared. I figured I will need an external application holding them.
1) How do I replace the application object with my own?
So either I will have to make my own program and call to it with remoting or use the ASP.NET session state server for application variables. I favor the Session State Server though.
2) How do I use the session state server for my own variables? How do I access it?
I searched high and low on the internet and only found the ideas mentioned above, but no help executing them.
I mainly code in VB.NET, but I can also understand C# code for examples.
A little info on my application:The client side has two canvas objects on top of each other. The top canvas object us used for drawing stuff, the canvas object below it holds the drawing in the end.When something is drawn, it is sent to the server in it's base64 representation. (getDataUri).The server puts this graphic on top of a stored Bitmap object through a Graphics object.
How the changes are being distributed to the other clients, I am working on that right now. Either I transfer the complete picture or each and every change that is submitted. This should work through Server Push. If this does not work thoroughly I will have to save and timestamp changes. A link to the current implementation, which is not currently fetching changes (but they get transfered to the server... With the problem that some reach one instance some reach the other on either w3wp in the webgarden) from the server is here: http:[url].....
View 1 Replies
Mar 29, 2011
I would like to loop over two string arrays but does not work.[code]...
View 4 Replies
Apr 23, 2009
I have the following code and i do no know why the program tells me that the variables are not declared.
[Code]...
View 36 Replies
May 5, 2009
I can't get my variables in the program below into thier arrays.
Dim lblnumbers(6) As Label, txtweight(6) As TextBox
Dim txtnumbers(6) As TextBox, sngnumbers(6) As Single
Dim grade() As String, g As Integer = 1, weight() As String
[CODE]...
View 17 Replies
Aug 18, 2010
we have an old vb6 application (let's call it app-vb6) that basically handles database searches. now i created a new .net application (app-dotnet) that can use the database information to do something else.
what i want to do is to be able to run app-dotnet using information obtained from app-vb6 (which would send something like a command line with a few parameters). but i don't know how to make only one single instance of the app-dotnet to refresh information every time app-vb6 calls it. this link [URL].. seems to have the answer but i could not follow it since it is VC.
View 2 Replies
Oct 17, 2011
I am developing an application for internal use in our company. The purpose of this application is for document imaging. What we are wanting to do is print a barcode label to attach to documents so that when they are scanned in a piece of software such as vfiler will be able to read the barcodes and know how to file them.The main focus is our ERP system which is web based (PHP). We are wanting to modify the code to allow the user to print the barcode label immediately once they enter an order or PO. I have access to the source code for the ERP web pages. I don't know of any way to make a web page print to a printer without displaying the printer select dialog. So, I decided that I wanted to try and create a VB application that would do the printing of the barcodes. This would allow me to bypass the the printer select dialog.
Now for the question. Is there any way to have a web page (PHP) running on the server call a VB app to perform a task? So, if I had a button on the webpage and the user clicked it, that button would somehow send the pertinent information (Order number) to the VB app and the VB app would print the barcode. The VB app will always be running on the machine. The label printers will be Zebra USB label printers on each person's machine.
View 2 Replies
May 11, 2010
My application works with the sql database. It always connect to the databse using the same login and password written earlier in the application code.I just have a conncetion string with all that data inside.
I know that it is not the safiest way to do that. How to safely hold this thata inside of an application?
View 4 Replies
Nov 28, 2009
Suppose I save a file as *.tar (this extension is my own making) using a vb6 program. Now when the user clicks this file, the window asks 'with what program to open this file' and he/she selects the exe of my program. Now I want to pass the name of file clicked to my program. Like when we click *.xls file, the exe of Excel program knows which file has been opened or clicked. Is there a way?
View 5 Replies