Creating a Function/Procedure with Parameters

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:


and here’s two showing the parameters as they should be:
draw1
params2

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