# Entering Method Parameters

**URL:** <https://forum.xojo.com/t/entering-method-parameters/8770>\
**Category:** Getting Started\
**Created:** [June 11, 2013, 2:24pm UTC](https://forum.xojo.com/t/entering-method-parameters/8770 "2013-06-11T14:24:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken\_Winograd](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/35a633/32.png) [@Ken\_Winograd](https://forum.xojo.com/u/Ken_Winograd)\
**Post date:** [June 11, 2013, 2:24pm UTC](https://forum.xojo.com/t/entering-method-parameters/8770/1 "2013-06-11T14:24:47Z")

</div>

I’m in Xojo, just added a new method, gave it a Method Name, and clicked down into the Parameters list, and want to enter some parameters…say, “s1 as String, n1 as Integer”. It works just fine if I enter the parameters just as I listed them here…one by one, with a comma separating the two parameters. I would have thought that after I entered the first parameter (“s1 as String”), I could just have pressed the RETURN key to enter the second parameter. But, the RETURN char didn’t work as expected. Is the right way to enter a list of parameters as one long line separated by commas, or am I missing a special keystroke?

---

<div class="post-metadata">

**Author:** ![Paul\_Lefebvre](https://forum.xojo.com/user_avatar/forum.xojo.com/paul_lefebvre/32/3152_2.png) [@Paul\_Lefebvre](https://forum.xojo.com/u/Paul_Lefebvre)\
**Post date:** [June 11, 2013, 2:35pm UTC](https://forum.xojo.com/t/entering-method-parameters/8770/2 "2013-06-11T14:35:49Z")

</div>

> [@13235:@Ken Winograd](#):
>
> Is the right way to enter a list of parameters as one long line separated by commas, or am I missing a special keystroke?

The right way to enter a list of parameters is to enter them on one long line, separate by commas.

---

<div class="post-metadata">

**Author:** ![Ken\_Winograd](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/35a633/32.png) [@Ken\_Winograd](https://forum.xojo.com/u/Ken_Winograd)\
**Post date:** [June 11, 2013, 2:38pm UTC](https://forum.xojo.com/t/entering-method-parameters/8770/3 "2013-06-11T14:38:21Z")

</div>

Thanks Paul. Good to know.

---

<div class="post-metadata">

**Author:** ![Steve\_Lizardi1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/f0a364/32.png) [@Steve\_Lizardi1](https://forum.xojo.com/u/Steve_Lizardi1)\
**Post date:** [July 18, 2014, 5:57pm UTC](https://forum.xojo.com/t/entering-method-parameters/8770/4 "2014-07-18T17:57:41Z")

</div>

can you provide a sample?

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [July 18, 2014, 6:03pm UTC](https://forum.xojo.com/t/entering-method-parameters/8770/5 "2014-07-18T18:03:12Z")

</div>

```auto
a as integer,b as integer, c as integer=47
```

in this example… there are 3 integer variables defined, with “C” being “optional” and having a default value of 47 if not supplied by the calling process

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 4:42pm UTC](https://forum.xojo.com/t/entering-method-parameters/8770/6 "2020-10-29T16:42:26Z")

</div>


