question(s) about declaring variables
- From: "Steve Easton" <admin@xxxxxxxxxxxxx>
- Date: Sun, 26 Jun 2005 16:31:16 -0400
1st. Which is better for a variable that is going to be used for text. Letting a variable be a
variant or declaring it as a string. According to MSDN, variants are more "versatile" ( if I'm
reading it right. )
2nd. Why do all code examples use "As String to" declare each variable like this:
Dim var1 As String
Public var2 As String.
instead of using the $ type-declaration character like this:
Dim var1$
Public var2 $
3rd. Why a separate line for each variable
I realize that declaring them like this:
Dim var1, var2, var3 As String
makes var1 and var2 variants and only var3 is declared as a string.
when done this way however:
Dim var1$, var2$, var3$
They are all recognized as String variables.
Thus concludes my dumb question(s) for today.
tyia
--
Steve
95isalive
This site is best viewed............
........................with a computer
.
- Follow-Ups:
- Re: question(s) about declaring variables
- From: J French
- Re: question(s) about declaring variables
- From: Mike D Sutton
- Re: question(s) about declaring variables
- Prev by Date: Help with VBscript
- Next by Date: USB Ports
- Previous by thread: Help with VBscript
- Next by thread: Re: question(s) about declaring variables
- Index(es):
Relevant Pages
|