How to retrieve the Item from a DataType to access its name.
ID: 533
See: Item = [Item]
using uCalcSoftware;
var uc = new uCalc();
var intType = uc.DataTypeOf(BuiltInType.Integer_32);
// Get the Item representation of the DataType
var itemHandle = intType.Item;
Console.WriteLine($"Data Type Name via Item: {itemHandle.Name}");
Data Type Name via Item: int using uCalcSoftware; var uc = new uCalc(); var intType = uc.DataTypeOf(BuiltInType.Integer_32); // Get the Item representation of the DataType var itemHandle = intType.Item; Console.WriteLine($"Data Type Name via Item: {itemHandle.Name}");
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
auto intType = uc.DataTypeOf(BuiltInType::Integer_32);
// Get the Item representation of the DataType
auto itemHandle = intType.Item();
cout << "Data Type Name via Item: " << itemHandle.Name() << endl;
}
Data Type Name via Item: int #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto intType = uc.DataTypeOf(BuiltInType::Integer_32); // Get the Item representation of the DataType auto itemHandle = intType.Item(); cout << "Data Type Name via Item: " << itemHandle.Name() << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim intType = uc.DataTypeOf(BuiltInType.Integer_32)
'// Get the Item representation of the DataType
Dim itemHandle = intType.Item
Console.WriteLine($"Data Type Name via Item: {itemHandle.Name}")
End Sub
End Module
Data Type Name via Item: int Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim intType = uc.DataTypeOf(BuiltInType.Integer_32) '// Get the Item representation of the DataType Dim itemHandle = intType.Item Console.WriteLine($"Data Type Name via Item: {itemHandle.Name}") End Sub End Module