Re: "Short" data type... where is it?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bob Butler (tiredofit_at_nospam.com)
Date: 12/06/04


Date: Mon, 6 Dec 2004 08:14:33 -0800


"okc.engineer" <okc.engineer@swbell.net> wrote in message
news:Wc%sd.37656$bP2.18056@newssvr12.news.prodigy.com
> I need to use a Short data type (defined in the help files as a two-
> byte integer), but VB doesn't recognize it and returns an error. It
> recognizes Long, but not short.
>
> I am not very good at VB programming, I don't do it very much, so
> something must be going over my head here. Any thoughts?

In VB an "Integer" is 2 bytes and a "Long" is 4 bytes. If you are seeing
"Short" then you are reading the help for VB.Net and that's a very different
language. If you are using VB.Net then you should ask questions in a
newsgroup with "dotnet" in the name. If you are using VB6 or earlier then
you need to use the VB documentation.

-- 
Reply to the group so all can participate
VB.Net... just say "No"


Relevant Pages

  • Re: Print a return value without storing it (also IIF and ternary operator)
    ... storing anything and it worked. ... data type from Format is a Variant. ... of the concatenation yourself, VB will handle that transparently, ... Access 2003) help files if a function can be used inside another ...
    (microsoft.public.vb.general.discussion)
  • "Short" data type... where is it?
    ... I need to use a Short data type (defined in the help files as a two-byte ... I am not very good at VB programming, I don't do it very much, so something ... must be going over my head here. ...
    (microsoft.public.vb.enterprise)
  • Re: Users and Groups
    ... tried, or cared, because most 'help files' are a waste of time. ... Developers and such write really good code but they, ... at the documentation, that is even better. ... by chance they do discover a bug, ...
    (Fedora)
  • Re: Users and Groups
    ... tried, or cared, because most 'help files' are a waste of time. ... I believe yelp will handle them all. ... at the documentation, that is even better. ... by chance they do discover a bug, ...
    (Fedora)
  • Re: Simple IF problem
    ... Am I missing someting in the help files? ... You won't find the specific construct documented in Excel help pages because this has to do with programming methodology and algorithms, ... What you will find, if you stumble around enough, is that the use of a string like "31/3/2009" for a date is deprecated. ... There are many lapses in Microsoft documentation. ...
    (microsoft.public.excel.worksheet.functions)