Big Chemical Encyclopedia

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

Articles Figures Tables About

A Function That Takes an Optional Argument

A Custom function That takes AN Optional Argument [Pg.302]

A custom function can have optional arguments. Use the Optional keyword in the list of arguments to declare an optional argument. The optional argument or arguments must be last in the list. [Pg.302]

You will need to determine the presence or absence of optional arguments in a procedure by using the IsMissing keyword. As well, you may need to provide a default value if an argument is omitted. [Pg.302]

The MolWt function can be found on the CD-ROM that acompanies this book. [Pg.302]

Function MolWt(formula As String, Optionai decimals) [Pg.303]

A CUSTOM FUNCTION THAT TAKES an Optional Argument [Pg.302]




SEARCH



Argument

Takes

© 2024 chempedia.info