Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing UDT into fixed length string
Message
From
03/02/1999 16:28:18
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Changing UDT into fixed length string
Miscellaneous
Thread ID:
00183636
Message ID:
00183636
Views:
51
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
Map
View

Click here to load this message in the networking platform