# Conversion to API 2 Label.Text is untitled

**URL:** <https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449>\
**Category:** macOS\
**Created:** [September 28, 2022, 1:03pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449 "2022-09-28T13:03:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ralf\_Penzler](https://forum.xojo.com/user_avatar/forum.xojo.com/ralf_penzler/32/7187_2.png) [@Ralf\_Penzler](https://forum.xojo.com/u/Ralf_Penzler)\
**Post date:** [September 28, 2022, 1:03pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/1 "2022-09-28T13:03:30Z")

</div>

After I converted a project using the ‘Convert to API 2’ command, all desktop labels had ‘untitled’ in the text.  
That was 259 desktop labels. Apart from the 1620 errors.  
I cannot understand why such a change is forced on a developer who has been working in this environment for 22 years.  
I have at least 8 other projects of this size.  
Apple hasn’t dared to do anything like that to this day.

Xojo 22 r2

Immediately after running the ‘Convert to API 2’ command, the labels are still OK, but after saving and reopening, the labels are untitled.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [September 28, 2022, 1:48pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/2 "2022-09-28T13:48:27Z")

</div>

If you can make a small sample showing how to replicate the issue (a xojo project made in xojo version x old) plus your comments, it would help Xojo on how to fix it.  
Attach it with a report in [https://issues.xojo.com](https://issues.xojo.com)

---

<div class="post-metadata">

**Author:** ![Ralf\_Penzler](https://forum.xojo.com/user_avatar/forum.xojo.com/ralf_penzler/32/7187_2.png) [@Ralf\_Penzler](https://forum.xojo.com/u/Ralf_Penzler)\
**Post date:** [September 28, 2022, 2:06pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/3 "2022-09-28T14:06:35Z")

</div>

OK.  
[https://tracker.xojo.com/xojoinc/xojo/-/issues/70204](https://tracker.xojo.com/xojoinc/xojo/-/issues/70204)

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [September 28, 2022, 2:11pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/4 "2022-09-28T14:11:58Z")

</div>

You forgot to attach the sample.xojo\_binary\_project where Xojo could try the conversion by themselves and see the problem. Upload the sample there or you run the risk of receiving a feedback as “we can’t replicate the issue here”.

---

<div class="post-metadata">

**Author:** ![Ralf\_Penzler](https://forum.xojo.com/user_avatar/forum.xojo.com/ralf_penzler/32/7187_2.png) [@Ralf\_Penzler](https://forum.xojo.com/u/Ralf_Penzler)\
**Post date:** [September 28, 2022, 2:44pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/5 "2022-09-28T14:44:41Z")

</div>

My example is an internal note.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [September 28, 2022, 2:50pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/6 "2022-09-28T14:50:12Z")

</div>

🤷🏻 Well… I hope they can handle an internal note… 🤔

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [September 28, 2022, 4:25pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/7 "2022-09-28T16:25:37Z")

</div>

Have you looked at:

> [@API1 to API2 conversion experience](https://forum.xojo.com/t/api1-to-api2-conversion-experience/67148):
>
> As I’ve no development I feel like doing on my app at the minute, I decided it was the time to attempt the conversion. A number of things have cropped up. Start with two copies of the project. One is for trying things, the other is for applying permanent conversion steps to. I have a number of small windows with only a few controls in each; these converted easily, with no compilation errors, and worked OK when tested. Such steps can then be applied to the clean copy. Having done that, SAVE! Thi…

---

<div class="post-metadata">

**Author:** ![Ralf\_Penzler](https://forum.xojo.com/user_avatar/forum.xojo.com/ralf_penzler/32/7187_2.png) [@Ralf\_Penzler](https://forum.xojo.com/u/Ralf_Penzler)\
**Post date:** [September 28, 2022, 4:54pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/8 "2022-09-28T16:54:49Z")

</div>

Thanks for the hint.  
I had other issues like 16 pt round corners on rectangles, but having the label texts disappear was the final straw.

---

<div class="post-metadata">

**Author:** ![Tim\_Hare](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_hare/32/176_2.png) [@Tim\_Hare](https://forum.xojo.com/u/Tim_Hare)\
**Post date:** [September 28, 2022, 10:40pm UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/9 "2022-09-28T22:40:48Z")

</div>

> [@Ralf\_Penzler](#):
>
> I cannot understand why such a change is forced on a developer

But it’s not. There is no requirement to change anything. Your API 1 code will continue to run for years to come.

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [September 29, 2022, 12:20am UTC](https://forum.xojo.com/t/conversion-to-api-2-label-text-is-untitled/72449/10 "2022-09-29T00:20:22Z")

</div>

I have been told that you’ll need to update to API 2.0 DesktopControls in order to get bug fixes and those New (to Xojo) controls they announced at XDC 2022.

I hope it isn’t true.
