Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 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 Changed 11 years ago by BrewManNH

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

comment:2 Changed 11 years ago by mlipok

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

comment:3 Changed 11 years ago by guinness

It's not documented as default name being "", so it shouldn't be added as an optional parameter in the syntax example.

comment:4 Changed 11 years ago by guinness

  • Resolution set to No Bug
  • Status changed from new to closed

comment:5 Changed 11 years ago by mlipok

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.