DataTypeOfIndexMethod
Returns a data type object
Syntax
DataTypeOfIndex(Index)
Parameters
Index
Index associated with the data type
Returns
Returns a data type object
Example 1: Displaying formatted data from string input
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_8u).ToString("-1"))
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_16u).ToString("-1"))
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Boolean).ToString("-1"))
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Complex).ToString("-1"))
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_String).ToString("-1"))
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_8u).ToString("-1"));
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_16u).ToString("-1"));
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Boolean).ToString("-1"));
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Complex).ToString("-1"));
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_String).ToString("-1"));
WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_8u).ToString('-1'));
WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_16u).ToString('-1'));
WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Boolean).ToString('-1'));
WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Complex).ToString('-1'));
WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_String).ToString('-1'));
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Integer_8u).ToString("-1") << endl;
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Integer_16u).ToString("-1") << endl;
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Boolean).ToString("-1") << endl;
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Complex).ToString("-1") << endl;
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_String).ToString("-1") << endl;
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Integer_8u).ToString("-1"));
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Integer_16u).ToString("-1"));
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Boolean).ToString("-1"));
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Complex).ToString("-1"));
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_String).ToString("-1"));
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="DataTypeOfIndex")> _
Private Function DataTypeOfIndex__(ByVal uCalcHandle As IntPtr,ByVal Index As BuiltInTypesEnum) As IntPtr
End Function
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="DataTypeOfIndex")]
protected static extern IntPtr DataTypeOfIndex_(IntPtr uCalcHandle,BuiltInTypesEnum Index);
{DLLImport}function DataTypeOfIndex__(uCalcHandle: System.Pointer;Index: BuiltInTypesEnum): System.Pointer; cdecl; external uCalcDLL name 'DataTypeOfIndex';
typedef uCalcPtr (* __DataTypeOfIndex)(void *uCalcHandle, BuiltInTypesEnum Index);
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "DataTypeOfIndex")]
static uCalcPtr DataTypeOfIndex_(void * uCalcHandle, BuiltInTypesEnum Index);