<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>Ideas on how to pass parms to QTP from QUICK</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Anyone have a good programming model on how to call a QTP program from within QUICK, but passing to it parameters (temporaries) from the calling QUICK program?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The preferred method I used to get around this, was by using a "special"<B> PH dictionary record</B> that would write text to a DAT file. I would then rename the DAT file to BAT or COM (in VMS land) to run the batch script. Effectively the program was building a batch script on-line and submitting it into the queue to run.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">ie:</FONT>
<BR> <FONT SIZE=2 FACE="Arial">Record: PASSTHRUREC</FONT>
<BR> <FONT SIZE=2 FACE="Arial">Schema: TEXTLINE x(255)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">In quick I would have a program that would simply</FONT><B> <FONT SIZE=2 FACE="Arial">let TEXTLINE = "do script command"</FONT></B> <FONT SIZE=2 FACE="Arial">and then I would use the RUN COMMAND to call the appropriate batch submit command (in UNIX it's "at", in VMS it's SUBMIT).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Unfortunately, in my new role, management won't allow me to go this way (we don't have the PH Architect license !!) so I need to look for alternatives. I was hoping I could use the run command with some sort of parm passing via the QTP command, but there is no parms that allow you to pass a value into the called QTP program.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I hope this is not too confusing.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks in advance.</FONT>
</P>
<P><I><FONT COLOR="#0000FF" SIZE=4 FACE="Arial">Fernando Olmos</FONT></I>
<BR><B><FONT SIZE=2 FACE="Arial">M.I.S.</FONT></B>
</P>
<P><SPAN LANG="en-au"><B><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">HPA</FONT></B></SPAN><B><SPAN LANG="en-us"></SPAN></B><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT FACE="Arial"><BR>
</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Direct: 03 9217 5411</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Mobile: 0410 382 857</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT FACE="Arial"><BR>
</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Fax: 03 9217 5716</FONT><FONT FACE="Arial"></FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> </SPAN>
</P>
<P><SPAN LANG="en-au"></SPAN><A HREF="file:///H:/Appdata/Microsoft/Signatures/www.hpa.com.au"><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><U></U></SPAN><SPAN LANG="en-au"><U><B><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">www.hpa.com.au</FONT></B></U></SPAN><SPAN LANG="en-au"></SPAN></A><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN>
</P>
<BR>
</BODY>
</HTML>