sdaiGetUpperIndex

The function returns the value of the upper index of the specified array instance when it was created.

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "sdaiGetUpperIndex")]
public static extern Int64 x86_sdaiGetUpperIndex(Int32 aggregate);

[DllImport(enginedll, EntryPoint = "sdaiGetUpperIndex")]
public static extern Int64 x64_sdaiGetUpperIndex(Int64 aggregate);

public static Int64 sdaiGetUpperIndex(Int64 aggregate)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiGetUpperIndex((Int32)aggregate);
				return _result;
			}
			else
			{
				return x64_sdaiGetUpperIndex(aggregate);
			}
		}    

Property aggregate

Size: 64 bit / 8 byte (reference)
...