Jump to content

Recommended Posts

Posted

Good day,

Regarding the information provided in the HelpFile - I have the following two questions, the first with regards to "audience relevance" and the second, with regards to "Functions".

Question 1: What is the intended audience for the employment of the HelpFile?

Question 2: What are the responses to the following two queries?
• 1) "When an optional parameter needs to be defined and is preceded by one or more optional parameters, the default value must be given for that parameter. Generally speaking functions should accept the Default keyword when you wish to use the default parameter."
• Question: What is "that parameter" in reference to...is it the "optional parameter" or is it the "one or more optional parameters"?

2) What is the following statement inferring|referring to?
• "If a function uses the @error flag method, the flag should be checked immediately after the function returns, as the @error flag will be reset to 0 when entering the next function. No attempt to use or access the function return value should be made if the @error flag has been set as in that case the return value is generally undefined..."
• This statement makes absolutely no sense to me whatsoever!

In any form of technical writing, I have adhered to three important principles, 1) non-assumptiveness, 2) non-pronoun employment, and 3) non-contraction employment.
1) non-assumptiveness: Never, ever assume the knowledge of of the intelligence of the audience.
2) non-pronoun employment: Never employ the use of pronouns.
• For example: "Among other things, that means you can assign a function to a variable, pass it around as an argument..." "Pass it around..." should be "Pass that function around..."
3) non-contraction employment: "can't" should be "cannot", "don't - "do not"...and so on.

Anyhow, answers to the above two questions would be greatly appreciated!

  • Moderators
Posted

mr-es335,

Ans 1: The coders who use AutoIt.

Ans 2.1: It refers to the preceding optional parameter(s).

Ans 2.2: Functions return a value (which might be as simple as 1/0 indicating success/failure, but could be an array or other complex variable) and the at the same time set the @error flag to 0 (success) or a non-zero value (usually indicating failure mode). If the @error flag is set, then the return value of the function could be anything at all and so should not be used.

Clearer?

As to your 3 comments:

1. We have been complimented on the content and clarity of our help file, but there sometimes those who find it too complex......

2 & 3: See this quote.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...