Solved

Visual Basic 6 query

Posted on 2013-11-11
2
402 Views
Last Modified: 2013-11-11
Hi Experts
Can someone please explain what does 0# mean in VB6.

Here is an example of its usage-

Dim f()                 As Single
    Dim m()                 As Single
    Dim i                   As Integer
    Dim j                   As Integer
    Dim K                   As Integer
    Dim C                   As Integer
    Dim ct                  As Integer
    Dim iCount              As Integer
    Dim xCount              As Long
    Dim bCompInvalid        As Boolean
    Dim iSum                As Integer
    Dim iNewRow             As Integer
    Dim iOldRow             As Integer
    Dim iHoldNeg            As Integer
    Dim dFact               As Double
    Dim dHoldVal            As Double
    Dim dTotal              As Double
    Dim msg                 As String
    Dim rdoRs               As rdoResultset
    Dim rdoTmpRs            As rdoResultset
    Dim dAppRate            As Double
       
        ReDim f(CompNo + 1, CompNo + 3)
        ReDim m(CompNo + 1, CompNo + 3)
           
             
        If colSelectedIngredients.Count > 0 Then
            For i = 1 To CompNo + 1
                For j = 1 To CompNo + 3
                    f(i, j) = 0#
                Next j
            Next i
0
Comment
Question by:kalbal
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39640534
it means to cast the value as a double. check http://msdn.microsoft.com/en-us/library/dzy06xhf.aspx
0
 

Author Closing Comment

by:kalbal
ID: 39640556
thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question