Solved

Visual Basic 6 query

Posted on 2013-11-11
2
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

726 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