Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Aug 1, 2000

VB Constant Declaration

Question:
What does the '* 1' mean in this constant declaration?

Public Const gcsDelimiter As String * 1 = "|"

Answer:
The * in your example defines the size of that the string should be initiated to. If you were to ask for the length of the string you would see it is one. If you example was:

Public Const gcsDelimiter As String * 10 = "|"
And you did:

?Len(gcsDelimiter)

you would see it is 10 characters long.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date