I'm finishing a Scilab project for school, and I've added comments to all my function based on this passage from the documentation:
Inside a function, the first comment lines, up to the first instruction or an empty line may be used to provide the default contents for the function help.
Yet help does not display the comments when I type help myfunction. Instead, it launches the help browser, on the search page.
Any ideas? Basically I'm looking for an equivalent of Matlab's "H1 lines" and "Help text".
The right instruction is
head_comments myfunction
When there is no native function named myfunction and myfunction is known as a user-defined one, indeed it would be fine to use directly
help myfunction
This wish is reported # http://bugzilla.scilab.org/10785
You have to use this function to convert comments to a help page:
http://help.scilab.org/docs/current/en_US/help_from_sci.html
and then compile it.
Related
I have this compiler error related to "in expansion of macro ‘CHKERRQ’" from PETSC whenever I call "CHKERRQ", I am not sure what causes it, could anyone please give any advice?
Thanks for your help in advance,
Feng
I solved the problem in the end. The return type of my function is void. I need to set the return type of my function, which calls lots of PETSC routines, to PetscErrorCode.
If I type the name of the function in elm-repl, I receive the function signature. I would like to see the actual definition.
elm-repl does not provide the source code to functions, but it will show you the function signature as you described.
The Elm core package page has a search box where you can type in the name of a function to get an immediate link to the function's documentation, and from there you can get to the source, almost always hosted on Github.
After add function call in keyword view, I want to edit this function call details.
How will edit this function call details ?
Your screenshot is in the keyword view, not the expert view.
To move to the expert view choose View ⇒ Editor and edit your script.
You mean you want to add parameters to the function call ?
you can double click on the value column for that function call line and it will show different parameters it can take and then you can add your parameter values
Parameters in keyword view
A basic overview of QTP keyword view is given in below link
http://www.softwaretestingclass.com/brief-overview-of-keyword-view-uftqtp-training-tutorial-11/
If you wanted to make customized functions I would suggest you to use the expert view and seperate function libraries
Let us know if you were looking for something else in answer.
I'm making a batch development kit in visual basic and i need to be able to call a function that sets textboxes to a saved files text. How do i do this without returning? I tried this, and it lets me run the program, but gives me a warning, not an error. How do i go about doing this? Here is my little function design. P.S. I recently switched back to VB from Java and i'm so used to doing public void. Thanks in advance!
Public Function loadProject()
End Function
You want a Sub, which is the equivalent to the Java void method.
Public Sub LoadProject()
End Sub
It's not a bad Idea to just have a function that returns a value like a success statement just in case you need it. A call to the function doesn't have to accept or use the return value from the function.
You could even build a class with two values - txtpreviousvalue and txtnewvalue
Have your function return that type and fill an instance of the type with the respective values.
One day, if you need it, you'll have it.
P.S. I'm only posting this as an answer because the good answer posted by sstan is not marked as the answer; You should probably do that.
What is actual use of dbms_assert.noop ?
Since this function performs no error checking and returns the input string as it was entered.
Read here on Pete Finnigan's blog where he discusses the dbms_assert.noop function. it mentions:
This (dbms_assery.noop), we can now clarify is used to mark a piece of code that is not to be tested by automated test tools (presumably Fortify) as this function does nothing except return the string passed unchanged.
By this, what I have understood that I can use this function where I am passing actual piece of code through a variable and I don't want it to be checked for SQL injection attacks.
This is one of the many uses of this function.