Solved

Passing variables to another WIN program

Posted on 1998-12-21
7
169 Views
Last Modified: 2010-05-03
I would like to pass a variable to a windows program from my VB application. I am loading a Formflow form from my VB app. and in Formflow I shall search in the database for the variable I sent from VB. Anyone?
0
Comment
Question by:soft4u
7 Comments
 
LVL 3

Expert Comment

by:Sendoh
Comment Utility
Hi !
I'm not sure why you need this but you can implement it in a easier way by stored the value in variable to a text file in HD and let the winapp access it.

Hope it'll help you.
0
 

Author Comment

by:soft4u
Comment Utility
You see I have a checklist in my VB interface. For each article number in the checklist there are forms to fill in or to just look at in Formflow. If an article no. in my checklist have certain form filled in in Formflow I would like to reach this by clicking a command button in VB and get right in to that form. Once that form is loaded it just has to find the record for my special article no. Hope you understand me, kind of hard to explain in a simple way.
Anyways, I don't like the idea of passing variables through a text file, there must be another way of passing variables.


0
 
LVL 18

Expert Comment

by:mdougan
Comment Utility
I'm not familiar with Formflow.  Is this an off-the-shelf application, or one you wrote?  Either way, if it supports DDE or OLE then you can pass variables back and forth.  Any idea if Formflow supports any of these?

MD
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:soft4u
Comment Utility
Yes it supports DDE and OLE. Formflow is the world leader in form management. It used to be owned by Delrina but it's now sold to Canadian company Jetform.

Hope you can help me
0
 
LVL 18

Expert Comment

by:mdougan
Comment Utility
Well, if it supports either one, then you're in luck... of the two, your best bet is probably OLE.  To understand how to use OLE with Formflow, you probably need some documentation from Formflow about what objects and methods they "expose" for you to work with in your VB program.  Try contacting Jetform to see if they have any sample VB code, as I'm sure this is a fairly common request for them.

If you'd like to have a go at it yourself, then I suggest that you look at the VB sample in

VB\samples\PGuide\GeoFacts

This sample uses Ole Automation to open up Excel, load a spreadsheet and read data from it.  The major difference is that this sample is not making Excel visible, and you'd probably want to make Formflow visible (you can do that too if you want).  But, this sample will get you started.

You may be able to see some of the objects and methods that Formflow "exposes" by going to your Project|References screen and seeing if you see a checkbox for Formflow object library (if so, check it).  Then, go to View|Object Browser.  Select the Formflow library in the dropdown listbox.  Any items you see are objects you could work with in your program.

Good Luck.

MD
0
 
LVL 12

Expert Comment

by:mark2150
Comment Utility
You can also use SendKeys to "drive" a program from VB. I use this technique for automatic document retreival. I have a database with file/page references and I have my VB app open Adobe Reader and tell it which file to access and what page to display when the operator clicks on the item in a listbox. Works well.

M

0
 
LVL 1

Accepted Solution

by:
jeffcameron earned 60 total points
Comment Utility
To see if it supports ActiveX(OLE) Automation in your VB IDE goto the projects - references menu item and search through the list for anytthing that says formflow, or jetform.  If there is check it and hit ok. Then goto your object browser - F2 from your VB IDE.  Where it says <All libraries> in the combobox select the item that says formflow, jetform, etc.  This will show you all the items that formflow exposes.  From there you can use these objects in your program as if they were always there.  If the company did a good job developing it, there will be descriptions when you select the items.  If this item does not exist just in the references reject my answer.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now