Roman Kucko
2005-12-13 09:09:02 UTC
Hello,
I am new to this forum and this is my first question.
I was looking for some function to check if an element exists in array. In
other languages there are functions like in_array(), is_in(), exists() etc.
I don't believe that AXAPTA has no such function and every time I have to go
through all the array elements to check if one of them is the one which I am
looking for.
PS. I know that I write own:
.....
for (i=0;i<=LastArrayElementNr;i++)
{
if (MyArray[i]==ElementISearchFor)
{
return true;///I have found the element
}
}
...
but I think that Axapta should have such function INSIDE :) Am I wrong?
Whould be grateful for any answer, explanation or arguments.
I am new to this forum and this is my first question.
I was looking for some function to check if an element exists in array. In
other languages there are functions like in_array(), is_in(), exists() etc.
I don't believe that AXAPTA has no such function and every time I have to go
through all the array elements to check if one of them is the one which I am
looking for.
PS. I know that I write own:
.....
for (i=0;i<=LastArrayElementNr;i++)
{
if (MyArray[i]==ElementISearchFor)
{
return true;///I have found the element
}
}
...
but I think that Axapta should have such function INSIDE :) Am I wrong?
Whould be grateful for any answer, explanation or arguments.