TOTALDROPPEDFILES: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
* If using [[_DROPPEDFILE]] with an index, you must call [[_FINISHDROP]] after you finish working with the list. | * If using [[_DROPPEDFILE]] with an index, you must call [[_FINISHDROP]] after you finish working with the list. | ||
* When using [[_DROPPEDFILE]] to read the list with an index, [[_TOTALDROPPEDFILES]] will '''not''' be reset (and the list of items won't be cleared) until [[_FINISHDROP]] is called. | * When using [[_DROPPEDFILE]] to read the list with an index, [[_TOTALDROPPEDFILES]] will '''not''' be reset (and the list of items won't be cleared) until [[_FINISHDROP]] is called. | ||
* '''[[ | * '''[[Keywords currently not supported by QB64#Keywords_not_supported_in_Linux_or_macOS_versions|Keyword not supported in Linux or macOS versions]]''' | ||
{{PageAvailability}} | {{PageAvailability}} | ||
* '''QB64 | * '''QB64 v1.3 and up''' | ||
* ''' | * '''QB64-PE all versions''' | ||
{{PageExamples}} | {{PageExamples}} | ||
* See example for [[_ACCEPTFILEDROP]] | * See example for [[_ACCEPTFILEDROP]] | ||
{{PageSeeAlso}} | {{PageSeeAlso}} |
Latest revision as of 01:17, 29 January 2023
The _TOTALDROPPEDFILES function returns the number of items (files or folders) dropped in a program's window after _ACCEPTFILEDROP is enabled.
Syntax
- totalFilesReceived& = _TOTALDROPPEDFILES
Description
- After _ACCEPTFILEDROP is enabled, _TOTALDROPPEDFILES will return 0 until the user drops files or folders into the program's window.
- When using _DROPPEDFILE to read the list sequentially, _TOTALDROPPEDFILES will be reset to 0 after the last item is retrieved (after _DROPPEDFILE returns an empty string "").
- If using _DROPPEDFILE with an index, you must call _FINISHDROP after you finish working with the list.
- When using _DROPPEDFILE to read the list with an index, _TOTALDROPPEDFILES will not be reset (and the list of items won't be cleared) until _FINISHDROP is called.
- Keyword not supported in Linux or macOS versions
Availability
- QB64 v1.3 and up
- QB64-PE all versions
Examples
- See example for _ACCEPTFILEDROP
See also