# Dim Fields in Queue for LIST Box shows 10 : Parameter typing error

**URL:** <https://clarionhub.com/t/dim-fields-in-queue-for-list-box-shows-10-parameter-typing-error/8231>\
**Category:** code\
**Created:** [May 28, 2025, 1:29pm UTC](https://clarionhub.com/t/dim-fields-in-queue-for-list-box-shows-10-parameter-typing-error/8231 "2025-05-28T13:29:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexBerg](https://clarionhub.com/letter_avatar_proxy/v4/letter/a/8edcca/32.png) [@AlexBerg](https://clarionhub.com/u/AlexBerg)\
**Post date:** [May 28, 2025, 1:29pm UTC](https://clarionhub.com/t/dim-fields-in-queue-for-list-box-shows-10-parameter-typing-error/8231/1 "2025-05-28T13:29:26Z")

</div>

Trying to show a queue with dim fields in a list box.  
I get an error as soon as the window opens.

```clarion
TestQueue Queue(),Pre()
Name String(20)
DimStr String(20),Dim(20)
  End 

```

If I create a window with the Name and DimStr[1] in a listbox I get an error:  
Unknown Error Posted : 10 : Parameter typing error

I am sure I remember usinig dim in topspeed files and showing the fields in a browse.  
I must be missing something but what???  
[QueueTest.zip](https://clarionhub.com/uploads/short-url/WClQwggM6admxAYsWanjQpUBPi.zip) (38.1 KB)

---

<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:** [May 28, 2025, 3:05pm UTC](https://clarionhub.com/t/dim-fields-in-queue-for-list-box-shows-10-parameter-typing-error/8231/3 "2025-05-28T15:05:30Z")

</div>

You cannot use DIM() fields in a Queue that feeds a LIST. As you saw you get an error at runtime.

The more difficult workaround is to use a VLB (aka [Virtual List Box or VLBProc](https://clarion.help/doku.php?id=prop_vlbproc.htm)) where you supply a callback that can supply the data using any Queue, File or method. VLB’s work very well.

The simplest workaround is to use OVER() like:

```clarion
TestQueue Queue(),Pre()
Name String(20)
DimStr_1 String(20) !was DimStr String(20),Dim(20)
DimStr_2 String(20) !now have 20 STRING(20) fields
... 3 - 18 ...
DimStr_19 String(20)
DimStr_20 String(20)
End

DimTestQueue GROUP(),Pre(DimTestQ) ,OVER(TestQueue)
Name String(20)
DimStr String(20),Dim(20)
   End

```

You can have a GROUP in the Queue which is nice so you just Over the Array. But you must count that Group as a Field and skip that Field in your Format using #Field#. Not sure if that can work with a Browse template.

```clarion
TestQueue Queue(),Pre()
Name String(20)
DimStr_Group GROUP,PRE() !Will be Field #2#
DimStr_1 String(20) !Will be Field #3#
DimStr_2 String(20)
... 3 - 18 ...
DimStr_19 String(20)
DimStr_20 String(20)
       End !Group
   End

DimStr String(20),Dim(20) , OVER(DimStr_Group)

```

My LIST Format Tool can be helpful. You can paste in any FORMAT() string and it will preview a working LIST fed by test data using VLB.

> **[GitHub - CarlTBarnes/List-Format-Parser: View LIST FORMAT() split into One Line per Column....](https://github.com/CarlTBarnes/List-Format-Parser)**
>
> View LIST FORMAT() split into One Line per Column. Use for Edit Format, Copy Columns and Groups. Source compare: Format() column changes, Preview LIST in Window.

* * *

> [@AlexBerg](#):
>
> I am sure I remember usinig dim in topspeed files and showing the fields in a browse.

The Browse Template makes its own Queue that will not have DIM fields, it will just have the Subscript(s) you picked.

---

<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:** [May 29, 2025, 2:57pm UTC](https://clarionhub.com/t/dim-fields-in-queue-for-list-box-shows-10-parameter-typing-error/8231/4 "2025-05-29T14:57:27Z")

</div>

Another option is to use a VLBProc to serve the data

---

<div class="post-metadata">

**Author:** ![SimonKemp](https://clarionhub.com/letter_avatar_proxy/v4/letter/s/71c47a/32.png) [@SimonKemp](https://clarionhub.com/u/SimonKemp)\
**Post date:** [May 29, 2025, 8:50pm UTC](https://clarionhub.com/t/dim-fields-in-queue-for-list-box-shows-10-parameter-typing-error/8231/5 "2025-05-29T20:50:54Z")

</div>

Not important, but Carl had already mentioned that in his detailed response.
