Thu Dec 02, 2021 9:45 pm
Login Register Lost Password? Contact Us

Create an Empty Key Inline

Comments and questions related to the Enterprise Control Language

Tue Sep 10, 2019 1:39 pm Change Time Zone

Hi Guys,

Is it possible to create an empty key inline to use in my code? I did't generated it already, but need it to perform some tests in my code.


Artur Baruchi
Posts: 19
Joined: Thu Apr 18, 2019 4:50 pm

Tue Sep 10, 2019 1:47 pm Change Time Zone


We have inline DATASET but there is no inline INDEX. DICTIONARY acts like an INDEX and can be defined inline, so perhaps that will get you what you need.

Or you can create an empty INDEX like this:
Code: Select all
ds := DATASET([{''}],{STRING10 key});
IDX := INDEX(ds,{key},'~RTTEST::EmptyKey');
although I cannot think of an instance where that would be useful. :)


Community Advisory Board Member
Community Advisory Board Member
Posts: 1606
Joined: Wed Oct 26, 2011 7:40 pm

Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest