Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement