# Creating a Function/Procedure with Parameters

**URL:** <https://community.thunkable.com/t/creating-a-function-procedure-with-parameters/56315>\
**Category:** Questions about Thunkable X\
**Created:** [November 13, 2018, 9:41pm UTC](https://community.thunkable.com/t/creating-a-function-procedure-with-parameters/56315 "2018-11-13T21:41:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Stuart\_Buchan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stuart_buchan/32/27467_2.png) [@Stuart\_Buchan](https://community.thunkable.com/u/Stuart_Buchan)\
**Post date:** [November 15, 2018, 10:03am UTC](https://community.thunkable.com/t/creating-a-function-procedure-with-parameters/56315/8 "2018-11-15T10:03:54Z")

</div>

Hi Paul

I spotted something when I used your linked copy. When I created a parameter, the name I had chosen was capitalised (not what I had input) when I added it to the inputs block. I sorted that and hey presto it was in the variables list. You’ll note that I deleted an earlier reply because, I then went back and re-opened by copies and without doing anything, checked my Draw1 block with the parameters and then opened variables and noted that they were now there!

Here’s the image I attached in my deleted message:

 ![params](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/c/1cf1941c8409eff70c7f9797c588f9e24999f32f.jpeg)  
and here’s two showing the parameters as they should be:  
 ![draw1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c4cd646b38aed75c89bcc81252e4289ef0d79c7c.jpeg)  
 ![params2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/e/fea52981f561374da4c370ead7ea33dcbf3b7f52.jpeg)

Mysterious! Especially, why I’ve got the “i” and “x” variables, as they’ve come from nowhere after my blocks were restored and I can’t find anything so can’t delete them.

Cheers, Stuart

---

_[View the full topic](https://community.thunkable.com/t/creating-a-function-procedure-with-parameters/56315)._
