Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There is <a href="http://groups.google.com/group/sybase.public.powerbuilder.general/browse_thread/thread/e6d6df8c99a7c565" rel="nofollow noreferrer">a discussion of SHFileOperation on sybase.public.powerbuilder.general</a> . This code block shows how to set up the structure correctly, for a delete operation in this case - does it help?</p> <pre><code>type os_shfileopstruct from structure unsignedlong hwnd unsignedlong wfunc blob pfrom blob pto unsignedinteger fflags unsignedlong banyoperationsaborted unsignedlong hnamemappings string lpszprogresstitle end type //inside a function call: // Arguments: as_SourceFile - the file(s) to delete. // aui_flags - file operation flags (0 - default) // aw_requestor - the requesting window os_shfileopstruct lstr_FileOp Integer li_rc lstr_FileOp.hWnd = Handle(aw_requestor) lstr_FileOp.wFunc = FO_DELETE lstr_FileOp.pFrom = Blob( as_SourceFile + Space(2) ) BlobEdit( lstr_FileOp.pFrom, Len( as_sourcefile ) + 1, Char(0) ) BlobEdit( lstr_FileOp.pFrom, Len( as_sourcefile ) + 2, Char(0) ) lstr_FileOp.fFlags = aui_flags lstr_FileOp.hNameMappings = 0 lstr_FileOp.lpszProgressTitle = Space(10) li_rc = SHFileOperationA( lstr_FileOp ) IF li_rc &lt;&gt; 0 THEN IF NOT IsNull( lstr_FileOp ) THEN IF lstr_FileOp.bAnyOperationsAborted = 1 THEN RETURN 0 END IF END IF ELSE -1 END IF RETURN 1 </code></pre> <p>from <a href="http://groups.google.com/group/sybase.public.powerbuilder.general/msg/dc1dc0f684242096" rel="nofollow noreferrer">sybase.public.powerbuilder.general</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload