General information
Category:
Coding, syntax & commands
Title:
Changing UDT into fixed length string
Hi All;
I wanted to check if there was an easy way to do this in VB (I know there is in C). I have the following UDT:
Type FooBunch
Foo1 as String * 10
Foo2 As String * 10
.
.
Foo20 as String * 10
end type
I would like to be able to do this:
Dim uTempFoo as Foobunch
Dim sTest as String * 200
uTempFoo.Foo1 = "Test"
sTest = uTempFoo
I would like to end up with sTest = "Test" and 196 spaces. This does not work. Is there any way to move an all-string UDT into a string without naming every element of the UDT? Thanks a bunch,
V
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only