Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP ByD - How to access member of collection with specific index

Dear Expert

I have developed SAP ByD for a while and wondering that the SDK does not provide any array data type (like in C, JAVA, etc).

Even though  the collection type is pretty much the same as it can contain multiple item. But it has limitation for accessing the item member in the list.

For example.

var result : collectionof DataType::StringDataType;






Then I need to access item at index 3.

But the syntax which is available for using is just    .GetFirst(), GetLast()  ....

Can someone please share any idea how to handle this?.

Is it possible to access it   like   result[2] ?  (same as in other programing language)

Best Regards,

Krit R.

Not what you were looking for? View more on this topic or Ask a question