vba - How do i declare and define a variable of a custom type in one line -
How can I declare and set a custom type in a row?
option explicitly type stackoverflow heap string overflow string ending type as sub-workExample () dim example stackoverflow example.stack = "pile" example.overflow = "overflow" msgBox (example.stack + Example.overflow) End Sub Sub NotCompiling () Blame example as stackoverflow = {.stack = "heap", .overflow = "overflow"} MsgBox (example.stack + example.overflow) End Sub In this mini example WorkingExample behavior I want and NotCompiling part shows that I write f John, but I can not. To show, something like this can be written as a line in the form of a dim example Stackoverflow = {.stack = "heap", .overflow = "overflow"} . Text after "div class =" itemprop = "Text">
The colon is a line ending like a carriage return.
sub-workExample (): Stackoverflow as a dim example: example.stack = "pile": example.overflow = "overflow": MsgBox (example.stack + example.overflow): End Sub
Comments
Post a Comment