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;

[265 byte] By [Oleksiy] at [2007-12-22]
# 1

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.Int32

Hope this helps,

MSFTAbelValadez at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

:-(

:-(((((((((

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#?

Oleksiy at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
Not to my knowledge. You would have to do something similar to the imports alias.
MSFTAbelValadez at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...