Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Apr 2001
    Location
    Guatemala City
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Type-declaration char (WinXP Access 2003)

    What are type-declaration characters and how are they used. Thanks.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Type-declaration char (WinXP Access 2003)

    If you declare a variable like this:

    Dim MyVar As Long

    you specify that MyVar is a Long Integer. You can also omit the As Long, and use the type declaration character & for Long Integers after the name:

    Dim MyVar&

    <table border=1><td align=center>Variable type</td><td align=center>Character</td><td align=center>Currency</td><td align=center>@</td><td align=center>Double</td><td align=center>#</td><td align=center>Integer</td><td align=center>%</td><td align=center>Long</td><td align=center>&</td><td align=center>Single</td><td align=center>!</td><td align=center>String</td><td align=center>$</td></table>
    Functions such as Left also have a form Left$. The Left function returns a Variant, the Left$ function always returns a String.

Posting Permissions

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