Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27358

Error Message

$
0
0
Hi,

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;

Code:

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
                lngTempFilesize = fileSizeDivide(lngTempFilesize)
                strFileSixeExp = " Mb"
        else
                strFileSixeExp = " Kb"
        end if
       
        fileSize = FormatNumber(lngTempFilesize, 2) & strFileSixeExp
end function

Any help please!!

Thanks

Viewing all articles
Browse latest Browse all 27358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>