Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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 BrewManNH, 13 years ago

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

comment:2 by mlipok, 13 years ago

So it looks like, it should be changed in the documentation.

comment:3 by guinness, 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 guinness, 13 years ago

Resolution: No Bug
Status: newclosed

comment:5 by mlipok, 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.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.