Solved

Visual Basic 6 query

Posted on 2013-11-11
2
398 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 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
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
Comment Utility
thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This video teaches viewers about errors in exception handling.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now