Re: File List Box
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Tue, 1 Aug 2006 20:22:06 -0400
These are called 'type declaration characters' and are a holdover from prior
versions of basic. As such, not all data types in VB have type declaration
characters:
Boolean none
Byte none
Currency @
Date none
Decimal none
Double #
Integer %
Long &
Object none
Single !
String $
Variant none
So, Dim s as String, and Dim s$ are the same. Ditto Dim c as Currency and
Dim c@.
This is also why, in API programming where you want to pass a null (0) value
to an API, you often see it written as 0& (to force the 0 to be representing
as a long as opposed to an integer).
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
Please reply to the newsgroups so all can participate.
"WebBiz" <justask@xxxxxxxxxxxxxxxxx> wrote in message
news:3RLzg.14641$PO.12931@xxxxxxxxxxxxx
"J French" <erewhon@xxxxxxxxxx> wrote in message
news:44cf475f.1027836519@xxxxxxxxxxxxxxxxxxxxxxx
On Tue, 1 Aug 2006 06:59:52 -0500, "WebBiz"
<justask@xxxxxxxxxxxxxxxxx> wrote:
I notice that you use the $ a lot. This reminds me of the old basic if
memory serves me. Have yet to run across what all those shortcuts mean in
any book. Recommend a resource that covers those odd looking variables?
To me $ is not an odd looking variable
It is the oldest BASIC definition of a String
It is extremely significant in things like Left$() versus Left()
We have had this discussed a number of times ...
It's unfortunate that my newsreader does not let me search historical
postings. (Outlook Express)
:-(
Rick
.
- Follow-Ups:
- Re: File List Box
- From: WebBiz
- Re: File List Box
- References:
- File List Box
- From: WebBiz
- Re: File List Box
- From: J French
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: Steve Gerrard
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: J French
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: J French
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: Steve Gerrard
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: J French
- Re: File List Box
- From: WebBiz
- Re: File List Box
- From: J French
- Re: File List Box
- From: WebBiz
- File List Box
- Prev by Date: Re: A question from an exam
- Next by Date: Re: File List Box
- Previous by thread: Re: File List Box
- Next by thread: Re: File List Box
- Index(es):
Relevant Pages
|
Loading