# Functional Statement Practical Guide in KDB+/Q Developer Level 3

**URL:** <https://forum.kx.com/t/functional-statement-practical-guide-in-kdb-q-developer-level-3/13797>\
**Category:** Academy Support\
**Tags:** imported\
**Created:** [March 19, 2024, 1:31am UTC](https://forum.kx.com/t/functional-statement-practical-guide-in-kdb-q-developer-level-3/13797 "2024-03-19T01:31:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trinity](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@trinity](https://forum.kx.com/u/trinity)\
**Post date:** [March 19, 2024, 1:31am UTC](https://forum.kx.com/t/functional-statement-practical-guide-in-kdb-q-developer-level-3/13797/1 "2024-03-19T01:31:29Z")

</div>

[https://learninghub.kx.com/forums/topic/functional-statement-practical-guide-in-kdb-q-developer-level-3](https://learninghub.kx.com/forums/topic/functional-statement-practical-guide-in-kdb-q-developer-level-3)

Error in demostration:

'''

myVar:14;

{[tab] myvar: 12; //definition within function scope is "picked-up"

select from tab where size = myVar}[trade]

'''  
the one in the function should be myVar not myvar so that the demo makes sense.

---

<div class="post-metadata">

**Author:** ![mmcparland](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/mmcparland/32/54_2.png) [@mmcparland](https://forum.kx.com/u/mmcparland)\
**Post date:** [March 19, 2024, 12:39pm UTC](https://forum.kx.com/t/functional-statement-practical-guide-in-kdb-q-developer-level-3/13797/2 "2024-03-19T12:39:53Z")

</div>

Hi @trinity,

Thank you for bringing this to our attention.

You are correct and I will have this updated immediately.

Many thanks,

Megan
