To open the .p file through another .p file.

Posted by sridevi.stalin on 30-Jul-2008 01:54

How can open any specified .p through another .p file?

(don't want to RUN .p).

ex:

DEFINE VARIABLE vcFileName AS CHARACTER NO-UNDO.

vcFileName = "sri.p".

IF vcFileName EXTERNAL "KERNEL32.DLL".

I count not find out what is the procedure name and how many parameters should use?

is there anybody?

All Replies

Posted by Admin on 30-Jul-2008 02:29

Don't is _desk.p the procedure that open the procedure editor?

I thik that you must run that procedure with your cvFileName as parameter, but is just a my intuition, i never do it.

Posted by Ham on 30-Jul-2008 03:24

/

  • You can use the Procedure Window - adecomm/_pwmain.w */

run adecomm/_pwmain.w

(input "", /* Parent ID String */

input "src/applhelp.p", /* File(s) to open */

input ""). /* Startup commands */

It will create an editor in a window and allows a user to edit the contents of a file.

HTH,

Wim

Posted by sridevi.stalin on 30-Jul-2008 03:57

But, its opening the new Untiled1 file.

tried,

vcFileName = sri.p.

RUN adecomm/_pwmain.w

(input "", /* Parent ID String */

input vcFileName, /* File(s) to open */

input ""). /* Startup commands */

I just open the vcFileName as the normal way we open the file to read the content.

thanks,

Posted by sridevi.stalin on 30-Jul-2008 04:04

If I specify sri.p instead of vcFileName, then working fine.

But, I would need to specify the file name at run time.

Posted by sridevi.stalin on 30-Jul-2008 04:05

DONE!!!!!!!

Thanks a lot!!!!!!!!:)

Posted by sridevi.stalin on 18-Sep-2008 05:21

Now I want to open any specified .w by another .w through AppBuilder?

In appbuilder all related dbs connected.

This thread is closed