+ Reply to Thread
Results 1 to 3 of 3

A question about initializing variables in Vbasic.

  1. #1
    serdar
    Guest

    A question about initializing variables in Vbasic.

    I declared a variable:

    Dim a As Boolean


    Can i be sure that a=FALSE if i don't initialize it as:

    a=0



  2. #2
    JE McGimpsey
    Guest

    Re: A question about initializing variables in Vbasic.

    Yes, Booleans are always initialized with the value False.

    In article <[email protected]>,
    "serdar" <[email protected]> wrote:

    > I declared a variable:
    >
    > Dim a As Boolean
    >
    >
    > Can i be sure that a=FALSE if i don't initialize it as:
    >
    > a=0


  3. #3
    serdar
    Guest

    Re: A question about initializing variables in Vbasic.

    thanks. you know, in some languages u cannot be sure about it, thats why i
    asked.



    "JE McGimpsey" <[email protected]>, haber iletisinde şunları
    yazdı:[email protected]...
    > Yes, Booleans are always initialized with the value False.
    >
    > In article <[email protected]>,
    > "serdar" <[email protected]> wrote:
    >
    > > I declared a variable:
    > >
    > > Dim a As Boolean
    > >
    > >
    > > Can i be sure that a=FALSE if i don't initialize it as:
    > >
    > > a=0




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1