# \[FM Weetbicks\] Best of 2021 #5 - Idle Record Release

**URL:** <https://the.fmsoup.org/t/fm-weetbicks-best-of-2021-5-idle-record-release/2660>\
**Category:** in the News\
**Created:** [December 22, 2021, 8:23pm UTC](https://the.fmsoup.org/t/fm-weetbicks-best-of-2021-5-idle-record-release/2660 "2021-12-22T20:23:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![xochi](https://avatars.discourse-cdn.com/v4/letter/x/0ea827/32.png) [@xochi](https://the.fmsoup.org/u/xochi)\
**Post date:** [December 24, 2021, 3:18pm UTC](https://the.fmsoup.org/t/fm-weetbicks-best-of-2021-5-idle-record-release/2660/3 "2021-12-24T15:18:00Z")

</div>

Two questions about your code:

1. I see you name some of your calculation variables with a leading tilde, e.g. `~rep` Any reason for this?
2. These lines intrigue me:

```auto
~rep = Code(Get(WindowName))
$$Activity[~rep] = ...

```

It looks like you are taking the name of the window, and converting that to an integer, and then using a repeating field $$Activity[] to store the data for that specific window.

Is this safe, however? If the Window name is long, then you'll end up with a ridiculously long integer:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/2X/d/d0147f5d7fe9d2ae098f228c9f46d03e6b8c3851.png)

My assumption would be that $$Activity[a very long integer] would lead to out of memory errors as FileMaker attempts to allocate a gigantic array. Perhaps that's not what FileMaker does for repeating fields or variables?

---

_[View the full topic](https://the.fmsoup.org/t/fm-weetbicks-best-of-2021-5-idle-record-release/2660)._
