Big Chemical Encyclopedia

Chemical substances, components, reactions, process design ...

Articles Figures Tables About

Arguments With or Without Parentheses

As well as performing an action, methods create a return value. The return value can be either True or False. Even the ChartWizard method creates a return value True if the chart was created successfully, False if the method failed. Usually you aren t interested in these return values. [Pg.260]

An example of a method that creates a useful return value is the Checkspelling method. The CheckSpelling method has the following s)mtax  [Pg.260]

If you use this method, you ll need the return value (either True or False) to determine whether the word is spelled correctly. [Pg.260]

If you want to use the return value of a method, you must enclose the arguments of the method in parentheses. If the arguments are not enclosed in parentheses, then the return value will not be available for use. Put another way, the expression [Pg.260]


See other pages where Arguments With or Without Parentheses is mentioned: [Pg.260]    [Pg.260]   


SEARCH



Argument

Parentheses

Parentheses with

© 2024 chempedia.info