Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command substitution
Message
De
04/05/1998 08:24:02
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, États-Unis
 
 
À
03/05/1998 18:42:47
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00096611
Message ID:
00096675
Vues:
20
>>If I have a number of variables named similarly with each name ending in a number (ie. date1, date2, date3...) could I refer to them with a string? (I do not want an array here)
>>ie.
>>For x - 1 to 6
>> varname = "date" + mid(str(x),2)
>> ? varname
>> ?
>>next x
>
>
>No, not possible in VB.

One thing that you might try, is to use the Microsoft Scripting Control. I've heard of other developers (read, not me) using this to do what you need.

It's a free control somewhere on the MS site.
Jay Shepherd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform