Modify

Opened 11 years ago

Closed 11 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 follow-up: Changed 11 years ago by 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.

comment:2 in reply to: ↑ 1 Changed 11 years ago by mlipok

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

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 Changed 11 years ago by mlipok

So let's wait and see what others say.

comment:5 Changed 11 years ago by guinness

  • Milestone set to 3.3.9.22
  • Owner set to guinness
  • Resolution set to Completed
  • Status changed from new to closed

Removed by revision [9038] in version: 3.3.9.22

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 owner will remain guinness.
Author


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

 
Note: See TracTickets for help on using tickets.