mr-es335 Posted September 22, 2024 Posted September 22, 2024 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! mr-es335 Sentinel Music Studios
Moderators Melba23 Posted September 22, 2024 Moderators Posted September 22, 2024 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now