DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 10 of 10

Thread: Initialise Date type Variable in VB6

Threaded View

  1. #1
    Join Date
    Jan 2005
    Location
    New Zealand
    Posts
    319

    Initialise Date type Variable in VB6

    Hi there,

    I am having 2 problems.
    Problem #1.
    Initialising Date Type variable and have no success in it. I am constantly getting this error message "Data MisMatch".

    Problem #2.
    I am also facing another problem with check Date Range.

    Here is the sample VB6 script.


    Option Explicit

    dim dteStartDate as date
    dim dteEndDate as date

    'Intialise Date Variable -----
    Private Function FSalesDate()


    dteStartDate =""
    dteEndDate = ""

    End Function

    '-------------------------------
    'Date Range check. -----
    Private Function FDateRangeCheck
    if (dteEndDate < dteStartDate) then
    xxxxxxxxxx
    endif
    End Function
    Last edited by Lennie; 11-05-2008 at 12:58 AM.
    Cheers,
    Lennie

Similar Threads

  1. Runtime error w/ Variable Type Part I
    By jamestmfbong in forum C++
    Replies: 0
    Last Post: 05-31-2005, 04:45 PM
  2. how to convert the type of session variable
    By venkat in forum ASP.NET
    Replies: 1
    Last Post: 07-20-2001, 05:43 AM
  3. Replies: 1
    Last Post: 11-16-2000, 10:16 PM
  4. Hungarian naming convention
    By Bob Rosen in forum authorevents.patrick
    Replies: 1
    Last Post: 09-05-2000, 08:21 PM
  5. Determining Type of a Variable
    By Scott in forum Web
    Replies: 1
    Last Post: 06-07-2000, 04:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center