# Segmented Control - LCB Error: array key does not exist

**URL:** <https://discourse.livecode.com/t/segmented-control-lcb-error-array-key-does-not-exist/253>\
**Category:** Report a bug\
**Created:** [September 18, 2024, 3:11pm UTC](https://discourse.livecode.com/t/segmented-control-lcb-error-array-key-does-not-exist/253 "2024-09-18T15:11:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![J9V6](https://discourse.livecode.com/user_avatar/discourse.livecode.com/j9v6/32/93_2.png) [@J9V6](https://discourse.livecode.com/u/J9V6)\
**Post date:** [September 18, 2024, 3:11pm UTC](https://discourse.livecode.com/t/segmented-control-lcb-error-array-key-does-not-exist/253/1 "2024-09-18T15:11:02Z")

</div>

Imported my Roman Clock app into LCC 1.0.0 DP-2. When opening the App the “revErrorDisplay” window appears with two errors as follows:

LCB Error: array key does not exist  
Object: segClockL  
LCB File: segmented.lcb  
LCB Line: 375

LCB Error: array key does not exist  
Object: segColorP  
LCB File: segmented.lcb  
LCB Line: 375

The app has two cards (main and menu) and the two segmented controls are both on the menu card and only displayed if you tap the menu button on the main card. There are three segmented controls on the menu card but LCC is only spitting out an error on two of them.

The revErrorDisplay window has a Script button which does nothing if you click it.

Navigating to the “menu” card in LCC displays the layout but the segmented control displays are all blank (no buttons displayed).

Is anyone able to reproduce this error when importing an app created in LiveCode 9.6.13 with one or more customised segmented controls to LCC 1.0.0 DP-2?

---

<div class="post-metadata">

**Author:** ![J9V6](https://discourse.livecode.com/user_avatar/discourse.livecode.com/j9v6/32/93_2.png) [@J9V6](https://discourse.livecode.com/u/J9V6)\
**Post date:** [September 23, 2024, 10:34am UTC](https://discourse.livecode.com/t/segmented-control-lcb-error-array-key-does-not-exist/253/2 "2024-09-23T10:34:50Z")

</div>

Some further information.

This appears to be a general bug with importing segmented controls. I created a blank app in Livecode desktop with just two segmented control widgets on a card. I saved the the app, exited Livecode desktop, then imported the app into LCC. The import process doesn’t generate any errors, but when you open the app in LCC it throws the LCB Error “array key does not exist” for the segmented controls (see image attached).

 ![IMG_1390](https://discourse.livecode.com/uploads/default/original/1X/8867f9133836d58ca2441c60b75332da9766fbc6.jpeg)

---

<div class="post-metadata">

**Author:** ![adamLC](https://discourse.livecode.com/letter_avatar_proxy/v4/letter/a/ecd19e/32.png) [@adamLC](https://discourse.livecode.com/u/adamLC)\
**Post date:** [September 26, 2024, 3:50pm UTC](https://discourse.livecode.com/t/segmented-control-lcb-error-array-key-does-not-exist/253/3 "2024-09-26T15:50:38Z")

</div>

Thanks for the report @J9V6 ! We have a fix for this issue coming soon. Keep an eye on this thread for future updates.

We appreciate you taking the time to help us improve LiveCode Create.

---

<div class="post-metadata">

**Author:** ![adamLC](https://discourse.livecode.com/letter_avatar_proxy/v4/letter/a/ecd19e/32.png) [@adamLC](https://discourse.livecode.com/u/adamLC)\
**Post date:** [October 31, 2024, 4:06pm UTC](https://discourse.livecode.com/t/segmented-control-lcb-error-array-key-does-not-exist/253/4 "2024-10-31T16:06:27Z")

</div>

This is now fixed in 1.0 dp-5!

Head to [preview.livecode.com](http://preview.livecode.com) or update Create Native to use the latest version.

We appreciate you taking the time to help us improve our product!
