Results 1 to 3 of 3

Thread: Classic VB - What Are #, $, etc.?

Threaded View

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Classic VB - What Are #, $, etc.?

    The symbols are "shortcuts" for several of the Visual Basic data types. # is the shortcut for Double, so

    VB Code:
    1. Dim MyVar#
    is the same as
    VB Code:
    1. Dim MyVar As Double

    Similarly:
    ! = Single
    & = Long
    @ =Currency
    % = Integer
    $ = String

    Note: Using the shortcuts is not recommended since they take away from the readability and self-documenting features of Visual Basic.
    Last edited by si_the_geek; Nov 27th, 2005 at 05:38 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width