Types in VB?
Hi,
Does VB support custom types? I can not find a way to define my own datatype. For example I need a datatype named "DeviceId" that works as integer. In Delphi I use
Type DeviceId = integer;
in C/C++
typedef int DeviceId;
Hi,
Does VB support custom types? I can not find a way to define my own datatype. For example I need a datatype named "DeviceId" that works as integer. In Delphi I use
Type DeviceId = integer;
in C/C++
typedef int DeviceId;
There isn't really any way to do C/C++ typedefinitions in vb, although you can use an import alias to do something similar.
For example:
Imports
DeviceId = System.Int32Hope this helps,
:-(
:-(((((((((
Damn, It's one from basic elements of programming language and it's missing!
Thank you for the answer. By the way, can I do it in C#?