User-Defined Type
Hi,
I want to create my own defined type to contain multiple variables. I try to do this by for example:
Type Colour
Blue As String
Red As String
End Type
however when I run this it says that it is 'expecting 'Declare | Delegate | Event | .... ...| Structure |Type'
So it is expecting 'Type' which I have, however it is still pops up as an error?
I want to create my own defined type to contain multiple variables. I try to do this by for example:
Type Colour
Blue As String
Red As String
End Type
however when I run this it says that it is 'expecting 'Declare | Delegate | Event | .... ...| Structure |Type'
So it is expecting 'Type' which I have, however it is still pops up as an error?
0
Best Answer
-
Hello,Type has been replaced by Structure, so the syntax would be:
Structure Colour Dim Blue As String Dim Red As String End Structure
Pierre0