Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HLLAPI and DDE question from a newbie!

Status
Not open for further replies.

kjburns31

IS-IT--Management
Apr 1, 2002
2
US
Well, I have been looking through the forum a while and I think I have read every post regarding hllapi. I have written a number of applications both client and server-side that utilize hllapi for retrieving and entering data into terminal-based apps.

I'm trying to use Procomm and Aspect to perform a function in the c/s application using DDE and scripts. Using other posts from the forum,(Thanks!) I am able to kick off the script from my application, however, I need to be able to pass a parameter to the script to pass an order number through. Any suggestions? Can I execute a script and pass parameters? Am I missing something simple?

Thanks In Advance,

kjb
 
One way would be to have you app write to an ini or txt file and then have the script read those values in. Just a thought.
 
Are you trying to pass variables into Procomm when you start Procomm from the command line, or are you trying to pass the value after Procomm has already been started?

If it's the former, then you can pass values into Procomm via one of Procomm's predefined global string variables, s0 through s9. If you start Procomm via a command line looking as such:

pw5.exe scriptname.wax var1 var2 var3

then var1 will be the contents of s0, var2 will be the contents of s1, and so on. Since they are stored in a string variable, you may need to use some of the string/numeric conversion commands, such as atoi or atof, to get the data into the proper format.

The other option you have is using the ddeadvise command and linking a global variable in Procomm that your DDE server can update at will.
 
i am doing all things in apsect and wish to know of all things anyone else has discovered they can accomplish with this powerful scripting language. currently i am trying to uncover the seemingly mysterious secrets of word dde command which remain rather elusive and undocumented. if anyone knows the place to go to get all the possibilities defined in one place PLEASE let me know

mmcmahan@ditechcom.com or mbmcmahan@mindspring.com
 
Hello,

I posted a Thread that contains a Link to a Help File For DDE to Excel. This Might be of some use.

Hank
 
Are you wanting to post the order number to the screen? (Keystroke Emulation) Or are you wanting to send the order number directly to the host? I will be glad to provide you a code sample in VC++ to accomplish this. But need to know which one you are trying to accomplish.


Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top