|
DumpFilesInQ |
|
| Prototype: | (Queue pQ, *? pFileNameField, Byte pFreeQ = True, Byte pLoadFileList = True) |
| pQ | Queue to be loaded from the FileList queue. |
| pFileNameField | Label of a field in the pQ queue that will receive the filename. This should be either a String or CString field. |
| pFreeQ | Indicates if the pQ should be freed or not before the file list is loaded. Defaults to True |
| pLoadFileList | Indicates if the file list should be loaded. Defaults to True. If this is True, then the Send2FileList is called. |
This method is used to transfer the entries from the FileList class queue to a queue in a local procedure, perhaps to use in a listbox.
Example:
ITS2 ITSend2Class
Loc:FileQ QUEUE,PRE()
Loc:FileName CSTRING(2049)
END
Window WINDOW('Files sent from Windows Explorer'),AT(,,315,218),|
ICON('C.ico'),SYSTEM,GRAY,MAX,RESIZE,IMM
LIST,AT(4,4,306,210),USE(?List1),VSCROLL,FONT('Calibri',9,,),|
FORMAT('1020L(2)|M~File Name~S(1020)@s255@'),FROM(Loc:FileQ)
END
Code
ITS2.DumpFilesInQ(Loc:FileQ, Loc:FileName, True, True)
Open(Window)
Display
Accept
End
Close(Window)
See also: