# Procedure in global embeds, inside global map doesn't start at begin line Why?

**URL:** <https://clarionhub.com/t/procedure-in-global-embeds-inside-global-map-doesnt-start-at-begin-line-why/9388>\
**Category:** questions\
**Tags:** c11\
**Created:** [September 22, 2026, 9:01am UTC](https://clarionhub.com/t/procedure-in-global-embeds-inside-global-map-doesnt-start-at-begin-line-why/9388 "2026-09-22T09:01:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dirk1](https://clarionhub.com/letter_avatar_proxy/v4/letter/d/977dab/32.png) [@Dirk1](https://clarionhub.com/u/Dirk1)\
**Post date:** [September 22, 2026, 9:01am UTC](https://clarionhub.com/t/procedure-in-global-embeds-inside-global-map-doesnt-start-at-begin-line-why/9388/1 "2026-09-22T09:01:24Z")

</div>

Hi All,

I have ie this procedure declaration inside the global map

```clarion
SubclassMDIChild PROCEDURE(LONG pHwnd, STRING pShortText),LONG

```

After running i get an error Expected: (,\*;

because it jumps to column 6  
before! it stayed on column 1

C11  
Single but big app

Any ideas?

If i try this app all works

> [@How to subclass a window and shorten the title when using MDITabs](https://clarionhub.com/t/how-to-subclass-a-window-and-shorten-the-title-when-using-mditabs/8565):
>
> I created this demo in response to a post in the Clarion newsgroups asking about how to shorten the window titles when using the MDI tab feature of Clarion on an appframe. Here is a demo app in C11 that shows how to do it. [https://www.clarionproseries.com/download/SubClassMDITabs.zip](https://www.clarionproseries.com/download/SubClassMDITabs.zip) It has five MDI windows and the code applied to three of them so you can see how it works and what it is like without it. I hope this helps someone in the future! Charles

---

<div class="post-metadata">

**Author:** ![Mark\_Sarson](https://clarionhub.com/user_avatar/clarionhub.com/mark_sarson/32/6132_2.png) [@Mark\_Sarson](https://clarionhub.com/u/Mark_Sarson)\
**Post date:** [September 22, 2026, 11:09am UTC](https://clarionhub.com/t/procedure-in-global-embeds-inside-global-map-doesnt-start-at-begin-line-why/9388/2 "2026-09-22T11:09:10Z")

</div>

Hi Dirk,

There are two ways to fix this.

First is to mark the embed a column 1

 ![image](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/8/8a83a46987200ed776bdff5c0cc6f2291c6e7777.png)

Or use the “short form” definition

```clarion
   SubclassMDIChild(LONG pHwnd, STRING pShortText),LONG

```

Mark

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [September 22, 2026, 11:56am UTC](https://clarionhub.com/t/procedure-in-global-embeds-inside-global-map-doesnt-start-at-begin-line-why/9388/3 "2026-09-22T11:56:11Z")

</div>

take the word PROCEDURE out, then it won’t need to be on column 1

---

<div class="post-metadata">

**Author:** ![Dirk1](https://clarionhub.com/letter_avatar_proxy/v4/letter/d/977dab/32.png) [@Dirk1](https://clarionhub.com/u/Dirk1)\
**Post date:** [September 22, 2026, 1:45pm UTC](https://clarionhub.com/t/procedure-in-global-embeds-inside-global-map-doesnt-start-at-begin-line-why/9388/4 "2026-09-22T13:45:31Z")

</div>

Thx both. Working again.

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [September 22, 2026, 2:24pm UTC](https://clarionhub.com/t/procedure-in-global-embeds-inside-global-map-doesnt-start-at-begin-line-why/9388/5 "2026-09-22T14:24:12Z")

</div>

> [@jslarve](#):
>
> take the word PROCEDURE out  
> ` SubclassMDIChild(LONG pHwnd, STRING pShortText),LONG`

I prefer to use the the “short form” definition rather than Column 1. If I copy the embed code into another App I won’t run into compile errors until I remember to go back and check Column 1.
