Hi,
I have this form:
this is the form "projTable"
I want to add new field "sortingId4"
but I don't find the code which can I add new field in sortingId?
*This post is locked for comments
Hi,
I have this form:
this is the form "projTable"
I want to add new field "sortingId4"
but I don't find the code which can I add new field in sortingId?
*This post is locked for comments
All right, let's say you have an array of enum2 with three elements. When you use such an EDT in a table and call the field MyEnumField, you'll get three fields (MyEnumField[1], MyEnumField[2] and MyEnumField[3]), all of type enum2. To set a value of such a field, you use the usual '=' operator, such as MyEnumField[1] = enum2:C and MyEnumField[2] = enum2:A.
In general, avoid array fields if not necessary. Creating several separate fields, each with its own name, it's better than using numeric indexes.
By the way, why is this thread marked as answered if you still have questions?
Hi Martin,
can tou explain me more :
1. I add new EDT array that contains enum type, for example : enum1:NoYes , enum2:A,B,C.
the values A,B,C in which place I set it, I don't udertand tableBuffer.SortingId[1] = "value".
Yes, the type is string, but it has two extra array elements, which means it represents three string values. You can add one more element of the same type; if you want a different type (such as an enum), you can't add it to SortingId - you must create another field.
Values to array field can be set by this syntax: tableBuffer.SortingId[1] = "value".
Hi Sohaib,
the "sortingid" has type string.
can I add to this values which has type enum or I create another one .
how to set the values of enums in EDT array?
It is using Array elements. Possibly you can add one more element in the existing EDT.
docs.microsoft.com/.../how-to-define-an-extended-data-type-as-an-array
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,399
Most Valuable Professional
nmaenpaa
101,156