CONTROL Handle


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on January 25, 2021 at 13:53:09:

In the wiki I found this in the sandbox:

A$ = CONTROL (0,'OPEN C:\IMAGES\LOGO.JPG')

OPEN – performs a "test open" of the file contained in the control to validate whether it is present. This file may be a template file, html file, image file or any file. The named file is opened, and the handle is saved for further operations using that file.

So, I am wondering, what is returned is the HANDLE, what can we do with that handle? I would like to be able to close this HANDLE from within Comet once its usefulness is completed.

Would the (SHELL EXECUTE) also return the HANDLE ?

I performed a (SHELL EXECUTE) and two(2) (SHELL EXECUTE WAIT) and in all case FuncError was 42. Is that a sign of success or is it the HANDLE ? The documented FuncError that I found includes only 0~5 and 20~22.

So how do I terminate a Shelled program ? In FILE (lun) CTL=control-parameter the control-parameter is not properly documented in the wiki.


Tested on a Windows 7 Pro, Compiled under Comet16.512, Executed on Comet32.530.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]