Modify

Opened 12 years ago

Closed 12 years ago

#2475 closed Bug (Completed)

Select...Case...EndSelect - parameter - "Case <expression>"

Reported by: mlipok Owned by: guinness
Milestone: 3.3.9.22 Component: Documentation
Version: 3.3.9.21 Severity: None
Keywords: Cc:

Description

in Select...Case...EndSelect
in parameter description ?
there is in first column
"Case <expression>"

whether it is good that this place uses the keyword "case"

I think that in the description of the parameters should be used only:
"<expression>"
and not, as at present
"Case <expression>"

Remarks:
such a description does not have the documentation to: Switch...Case...EndSwitch

Attachments (0)

Change History (5)

comment:1 by BrewManNH, 12 years ago

Select and Switch have different syntax. The expression is tested only once in the Switch command. The expression is tested on every Case statement in a Select command.

in reply to:  1 comment:2 by mlipok, 12 years ago

Replying to BrewManNH:

Select and Switch have different syntax. The expression is tested only once in the Switch command. The expression is tested on every Case statement in a Select command.

Yes I know and that all is clear
However, that's not what I mean.

I think it's best to explain it, direct example.

Here are two examples, containing fragments of documentation files.

###Parameters###
@@ParamTable@@
Case &lt;expression&gt;
	If the expression is true the following statements up to the next Case or EndSelect statement are executed. If more than one of the Case statements are true, only the first one is executed.
@@End@@
###Parameters###
@@ParamTable@@
&lt;expression&gt;
	If the expression is true the following statements up to the next Case or EndSelect statement are executed. If more than one of the Case statements are true, only the first one is executed.
@@End@@

The first contains the current form. The second is modified only for the TICKET.

I asked before:
"
Whether it is good That this place uses the keyword "case"
"

I am thinking whether it is good that the keyword "case" is placed in the name of the parameter.

comment:3 by BrewManNH, 12 years ago

Yes, because of the way Select/Case works you have to put the expression after the word Case. The example is demonstrating that fact. At least that's how I read it.

Switch needs the expression after the Switch keyword, perhaps the help file should have the keyword in the parameters.

Of course this is only my opinion based upon how they work and how I'm reading the help file.

comment:4 by mlipok, 12 years ago

So let's wait and see what others say.

comment:5 by guinness, 12 years ago

Milestone: 3.3.9.22
Owner: set to guinness
Resolution: Completed
Status: newclosed

Removed by revision [9038] in version: 3.3.9.22

Modify Ticket

Action
as closed The owner will remain guinness.

Add Comment


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