CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Error Message

  1. #1
    Join Date
    Feb 2009

    Error Message


    I have changed a data type of a field (fieldsize) from int to Bigint.

    Now, the problem is it generated the following error:

    Microsoft VBScript runtime error '800a000d'

    Type mismatch

    /Citrix/MetaframeXP/default/_include/functions/default.asp, line 330

    The default.asp where the problem is raised is shown below;

    function fileSize(intFileSize)
    	dim lngTempFilesize, strFileSixeExp
    	'Get the size in KB
    	lngTempFilesize = intFileSize
    	'lngTempFilesize = fileSizeDivide(intFileSize)
    	'If file size is greater than 1Mb divide again and append "Mb"
    	if lngTempFilesize => 1024 then  'this is line 330'
    		lngTempFilesize = fileSizeDivide(lngTempFilesize)
    		strFileSixeExp = " Mb"
    		strFileSixeExp = " Kb"
    	end if
    	fileSize = FormatNumber(lngTempFilesize, 2) & strFileSixeExp
    end function
    Any help please!!


  2. #2
    Join Date
    Dec 2001

    Re: Error Message

    What is the data type of the variable just before the error? Seems it must not be numeric.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.