Modify ↓
#2399 closed Bug (No Bug)
FileOpenDialog - Function constructor - bug ?
| Reported by: | mlipok | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | Documentation | |
| Version: | 3.3.9.18 | Severity: | None |
| Keywords: | Cc: |
Description
in FileOpenDialog
the constructor is described that:
FileOpenDialog ( "title", "init dir", "filter" [, options = 0 [, "default name" [, hwnd]]] )
is this properly ?
maybe this is better ?
FileOpenDialog ( "title", "init dir", "filter" [, options = 0 [, default name="" [, hwnd]]] )
I see a similar situation in
FileSetTime ("file pattern", "time" [, type = 0 [, recurse = 0]])
However, in this case, the parameter "time" is mandatory, as opposed to the "default name", which is optional.
Attachments (0)
Change History (5)
comment:1 by , 13 years ago
comment:3 by , 13 years ago
It's not documented as default name being "", so it shouldn't be added as an optional parameter in the syntax example.
comment:4 by , 13 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:5 by , 13 years ago
So still there is some discrepancy, because the parameter description is written clearly:
default name [optional] Suggested file name for the user to open. Default is blank ("").
Unless I'm wrong.
Note:
See TracTickets
for help on using tickets.

The first example is definitely written wrong, the second one (FileSetTime) is correctly written.