- Christopher Craft
- PowerBuilder
- Wednesday, 10 July 2024 12:34 AM UTC
PB 2022
I am writing code to support Copy/Paste of Files to my application. I use the following to get the information.
IF guOS.OpenClipboard(0) THEN
lptr = guOS.GetClipboardData(15)
lsFile = Space( liAllocate )
liFiles = guOS.DragQueryFile( lptr, -1, lsFile, liAllocate )
FOR liNdx = 1 TO liFiles
lsFile = Space( liAllocate )
guOS.DragQueryFile( lptr, liNdx - 1, lsFile, liAllocate )
istr_DocInfo[liNdx].FileLoc = lsFile
istr_DocInfo[liNdx].Descr = f_GetFileName(lsFile)
//MessageBox("Paste", lsFile)
NEXT
guOS.EmptyClipboard()
guOS.CloseClipboard()
END IF
Do I need to call DragFinish() even though I did not use the dropped files structure? I just want to make sure I am managing the memory properly.
Thanks,
Chris Craft
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.