Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing UDT into fixed length string
Message
De
03/02/1999 16:28:18
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Changing UDT into fixed length string
Divers
Thread ID:
00183636
Message ID:
00183636
Vues:
50
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
Fil
Voir

Click here to load this message in the networking platform