Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting a number
Message
De
11/03/1998 20:47:06
 
 
À
11/03/1998 20:36:58
Information générale
Forum:
Visual Basic
Catégorie:
VBScript
Divers
Thread ID:
00084017
Message ID:
00084062
Vues:
15
An easier approach is to use the Space function to request a string consisting of the specified number of spaces:

msgbox Space(20) & "Visual Basic Rules!"

Space is somewhat like a specialized version of String. String also gives you repeated occurrences of a character, but you can request any character you want, whether it is a blank, an asterisk, or anything else. For example, the following displays a string with 20 leading blanks:

msgbox String(20, " ") & "Visual Basic Rules!"
but this:
msgbox String(20, "*")& "Visual Basic Rules!"
displays the string as "********************Visual Basic Rules!"

I hope all what you need is in those replies.

Good luck
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform