Optional Parameter in User Function.
|
06-14-2021, 09:03 PM
(This post was last modified: 06-14-2021 09:10 PM by matalog.)
Post: #1
|
|||
|
|||
Optional Parameter in User Function.
Is there anyway to set an optional paramater in a User created function?
I use the following all day, to convert feet to inches: Code: EXPORT F2M(A,B) I press a user defined key that types into F2M() for me, and leaves the cursor in the brackets, which is very convenient. Quite often, I do not need to input any inches, and therefore would like to be able to set B as an optional parameter/variable in the function, where the function will default B to Zero when it is not input. The function will currently not run if I do not enter a value for A, and a value for B. F2M(6,2) is an accepted input, but F2M(10) will not work, and I would like it to, instead of having to type F2M(10,0). |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Optional Parameter in User Function. - matalog - 06-14-2021 09:03 PM
RE: Optional Parameter in User Function. - StephenG1CMZ - 06-14-2021, 09:24 PM
RE: Optional Parameter in User Function. - matalog - 06-14-2021, 09:28 PM
RE: Optional Parameter in User Function. - Didier Lachieze - 06-14-2021, 09:58 PM
RE: Optional Parameter in User Function. - matalog - 06-14-2021, 10:10 PM
RE: Optional Parameter in User Function. - Albert Chan - 06-14-2021, 09:40 PM
RE: Optional Parameter in User Function. - matalog - 06-14-2021, 09:56 PM
RE: Optional Parameter in User Function. - Albert Chan - 06-14-2021, 10:08 PM
RE: Optional Parameter in User Function. - Wes Loewer - 06-15-2021, 03:24 AM
|
User(s) browsing this thread: 1 Guest(s)