# Do not Drag-n-drop folded code blocks in FMPv22

**URL:** <https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940>\
**Category:** Heads-Up!\
**Created:** [July 9, 2025, 9:17am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940 "2025-07-09T09:17:07Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malcolm](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/malcolm/32/196_2.png) [@Malcolm](https://the.fmsoup.org/u/Malcolm)\
**Post date:** [July 9, 2025, 9:17am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/1 "2025-07-09T09:17:07Z")

</div>

FMPv22 has code folding. This is fantastic news for everyone who uses more than one IF / ELSE in their code.

Other code editors have been doing code-folding forever. One of the biggest advantages is that you can collapse the code to the logical structure ( shown in the 2nd image). Then you simply drag the entire collapsed block into a new position. It's a huge benefit.

### Spoiler: code that has been folded does not drag-n-drop correctly in FMv22.

The 1st image shows some code and the 2nd image shows the code folded into a compact state. If I drag the folded code on line 7, `Else If [2]` and drop it between line 10 and 13 then I expect it to move the entire code block and to look like the 3rd image.

What actually happens is shown in the 4th image.

That one drag-n-drop has ruined the flow for all three of the `Else If` statements. It's hard to image a worse outcome.

This bug has been reported, so we hope it is fixed quickly. Until then do not drag-n-drop collapsed code.

 ![The fully expanded code](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/2X/c/c2a2bf671534849903f5e0fa40b9b89185e95956.png)  
 ![The fully collapsed code](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/2X/9/91ca93cf4d0e33983227c4fe09078cac21ff4985.png)  
 ![After dragging line 7 down one line the code should look like this](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/2X/2/262792d9d0c081fd30afcec701d87d6947c2c858.png)  
 ![Instead, we get this mess](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/2X/2/28e01e982f5c1d2a71dc930d5704c3277805ccb5.png)

---

<div class="post-metadata">

**Author:** ![weetbicks](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/weetbicks/32/206_2.png) [@weetbicks](https://the.fmsoup.org/u/weetbicks)\
**Post date:** [July 9, 2025, 10:03am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/2 "2025-07-09T10:03:44Z")

</div>

Good old Claris, delivering 75% of a feature for the last 20 years 🙂

---

<div class="post-metadata">

**Author:** ![OliverBarrett](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OliverBarrett](https://the.fmsoup.org/u/OliverBarrett)\
**Post date:** [July 9, 2025, 11:03am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/3 "2025-07-09T11:03:08Z")

</div>

Yes, I just wish they would make the basic product more usable.

Where is SQL INSERT, UPDATE, and DELETE in the BASIC product?

No, what am I thinking? Let's jump on the AI Hype bandwagon instead.

I could go on ...

---

<div class="post-metadata">

**Author:** ![planteg](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/planteg/32/627_2.png) [@planteg](https://the.fmsoup.org/u/planteg)\
**Post date:** [July 9, 2025, 11:20pm UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/4 "2025-07-09T23:20:54Z")

</div>

> [@Malcolm](#):
>
> and drop it between line 10 and 13 then I expect

Dropping between line 10 and line 13 is a shot in the dark: the code block may end anywhere and it's not in the control of the developer who drops the block, but in the hands of the Claris' developer who implements the drop. IMO, the analysis for this feature has not been done thoroughly and it should have been brought back up for completion. Just imagine if there were 20 lines in the **Else If [3] block** 😬. The complete code block for **Else If [3] block** should expand to let the developer see the lines and pick the proper place for the drop.

One thing I don't get is how come no one found out that bug before v 22 went to ETS, or during ETS.

---

<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:** [July 9, 2025, 11:45pm UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/5 "2025-07-09T23:45:47Z")

</div>

> [@planteg](#):
>
> One thing I don't get is how come no one found out that bug before v 22 went to ETS, or during ETS.

I've been with FileMaker for (grabs calendar, starts flipping pages) **a few** years and spent **a few** dollars with them, and never been invited to beta test.

In spite of that I find and submit a fair share of bug reports.

I think Claris doesn't quite have their developer relations nailed down?

---

<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:** [July 9, 2025, 11:47pm UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/6 "2025-07-09T23:47:13Z")

</div>

Out of curiosity, what happens if you Copy (or Cut) a folded code block, and then Paste it? Does it work sensibly then?

---

<div class="post-metadata">

**Author:** ![planteg](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/planteg/32/627_2.png) [@planteg](https://the.fmsoup.org/u/planteg)\
**Post date:** [July 9, 2025, 11:49pm UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/7 "2025-07-09T23:49:10Z")

</div>

Can't tell, I have not installed the new version.

---

<div class="post-metadata">

**Author:** ![steve\_ssh](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steve_ssh/32/160_2.png) [@steve\_ssh](https://the.fmsoup.org/u/steve_ssh)\
**Post date:** [July 10, 2025, 3:19am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/8 "2025-07-10T03:19:11Z")

</div>

Thanks for the heads up, Malcolm. Quite appreciated.

---

<div class="post-metadata">

**Author:** ![Malcolm](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/malcolm/32/196_2.png) [@Malcolm](https://the.fmsoup.org/u/Malcolm)\
**Post date:** [July 10, 2025, 6:34am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/9 "2025-07-10T06:34:14Z")

</div>

@planteg, Look at the second image. The code on line 11 and 12 are folded under the `Else If` on line 10. Dropping the dragged line between line 10 and 13 should place it after all the code hidden by folding and immediately before the `Else` on line 13.

I'm on the ETS. However, we sign confidentiality agreements with Claris so I cannot say whether or not this bug was found. I do hope it will be fixed. You can do your bit by filing bug reports on the Community web site. More complaints = faster fixes.

@xochi , Cutting / copying a folded block of code shows the same bug/behaviour. It only copies the visible line.

You can request to be part of ETS. I've filed bugs on ETS builds and seen them fixed in the released version.

---

<div class="post-metadata">

**Author:** ![chebfarid](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/chebfarid/32/3200_2.png) [@chebfarid](https://the.fmsoup.org/u/chebfarid)\
**Post date:** [July 10, 2025, 1:11pm UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/10 "2025-07-10T13:11:55Z")

</div>

> [@Malcolm](#):
>
> Cutting / copying a folded block of code shows the same bug/behaviour. It only copies the visible line.

Funny, tested this yesterday (FM 22 on OSX Ventura), after reading your post: copy/paste works fine, drag/drop has the described bug.

---

<div class="post-metadata">

**Author:** ![Malcolm](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/malcolm/32/196_2.png) [@Malcolm](https://the.fmsoup.org/u/Malcolm)\
**Post date:** [July 10, 2025, 8:32pm UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/11 "2025-07-10T20:32:53Z")

</div>

Interesting. That will be suitable workaround while the drag-n-drop issue is being resolved.

I originally tested at home. I'm not sure which OSX that laptop is running ( I thought it was Ventura?). I'll have to confirm that. Here at work I'm on OSX Sequoia and I'm expecting to get v22 installed today or early next week.

Update: I've just tested on v22 Sequoia and confirm that cut and copy will only put the visible line of a collapsed block into the clipboard. The hidden lines are not put onto the clipboard.

Further Update: I'm using FileMaker V22.0.1.68 on Ventura OSX13.7.5 x86\_64 (intel) and the cut / copy commands only cut/copy the visible line of folded code block.

---

<div class="post-metadata">

**Author:** ![barefoot](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/barefoot/32/2553_2.png) [@barefoot](https://the.fmsoup.org/u/barefoot)\
**Post date:** [July 10, 2025, 10:55pm UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/12 "2025-07-10T22:55:34Z")

</div>

that is not even half-baked. Well as stated by Dick Kallman on the [FMTraining.tv](http://FMTraining.tv) Claris fixes bugs if the demand for the fix is high (at least that is what I understood)! So now we need to beg for a fix loud and clearly!

---

<div class="post-metadata">

**Author:** ![OliverBarrett](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OliverBarrett](https://the.fmsoup.org/u/OliverBarrett)\
**Post date:** [July 12, 2025, 12:37pm UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/13 "2025-07-12T12:37:40Z")

</div>

testing--

---

<div class="post-metadata">

**Author:** ![nils-w](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/nils-w/32/3392_2.png) [@nils-w](https://the.fmsoup.org/u/nils-w)\
**Post date:** [July 18, 2025, 10:13am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/14 "2025-07-18T10:13:58Z")

</div>

We – and I assume, many others – are using ETS mostly for regression testing our own products and solutions. New features I try out with the public release and we usually wait for the first dot release before taking a new major version into production – so plenty of time there 😉

---

<div class="post-metadata">

**Author:** ![planteg](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/planteg/32/627_2.png) [@planteg](https://the.fmsoup.org/u/planteg)\
**Post date:** [July 19, 2025, 12:26am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/15 "2025-07-19T00:26:49Z")

</div>

> [@nils-w](#):
>
> We – and I assume, many others – are using ETS mostly for regression testing our own products and solutions.

This is understandable. I know Claris selects only some among those who ask to be part of ETS, and I feel this is a reason why ETS is not that successful in the end. I once have been assigned to be an ETS tester for my employer, and my goal was to try real hard to fault a new feature. I found out a few rinkle but they were not necessarily reported back.

I wonder how this process goes with other software editors.

---

<div class="post-metadata">

**Author:** ![Markus](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Markus](https://the.fmsoup.org/u/Markus)\
**Post date:** [July 19, 2025, 8:07am UTC](https://the.fmsoup.org/t/do-not-drag-n-drop-folded-code-blocks-in-fmpv22/4940/16 "2025-07-19T08:07:08Z")

</div>

nah-  
I was ETS member, maybe for FM8/8.5 or so. At that time, there was no wifi in trains and I was traveling 2-4 hrs per day, almost every weekday - spending quite some time with testing.  
In the evening when back in my office, I realized that my findings are already published by others, so I did not contribute much.  
After that 'ETS', I was no longer ETS, without any messages.. I tried to become ETS again later, but never got an answer.  
Today, that is ok fir me - but at that time, I did not feel comfortable...
