本文介绍了类型不匹配:'[string:&quot;&quot;]'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好, 为什么我收到此错误..?干杯。 Mark Sargent。 错误类型: Microsoft VBScript运行时(0x800A000D) 类型不匹配:''[string:""]'' /Classifieds/ClassifiedImageResize.asp,第27行 <% ''创建AspJpeg实例 设置Jpeg = Server.CreateObject(" Persits.Jpeg") ''计算路径到源图像 Path = Server.MapPath(FilePath) ''开源图片 Jpeg.Open Path ''创建AspUpload对象的实例 设置Upload = Server.CreateObject(" Persits.Upload") ''减少图像尺寸% ((***第27行***))Jpeg.Width = Jpeg.OriginalWidth * Upload.Form(" scale")/ 100 Jpeg.Height = Jpeg.OriginalHeight * Upload.Form(" scale)/ 100 ''必要时应用锐化 ''Jpeg.Shar pen 1,130 ''创建缩略图并将其保存到磁盘 FilePath =替换(FilePath," /"," \" ;) FilePath =替换(FilePath," ImageUploads \","") Jpeg.Save Server.MapPath(" ImageUploads\Thumbs" ;)& " \Thumb" &安培; FilePath %>Hi All,why am I getting this error..? Cheers.Mark Sargent.Error Type:Microsoft VBScript runtime (0x800A000D)Type mismatch: ''[string: ""]''/Classifieds/ClassifiedImageResize.asp, line 27<%'' Create instance of AspJpegSet Jpeg = Server.CreateObject("Persits.Jpeg")'' Compute path to source imagePath = Server.MapPath(FilePath)'' Open source imageJpeg.Open Path'' Create an instance of AspUpload objectSet Upload = Server.CreateObject("Persits.Upload")'' Decrease image size by %((***Line 27***)) Jpeg.Width = Jpeg.OriginalWidth * Upload.Form("scale") /100Jpeg.Height = Jpeg.OriginalHeight * Upload.Form("scale") / 100'' Apply sharpening if necessary'' Jpeg.Sharpen 1, 130'' create thumbnail and save it to diskFilePath = Replace(FilePath, "/", "\")FilePath = Replace(FilePath, "ImageUploads\", "")Jpeg.Save Server.MapPath("ImageUploads\Thumbs") & "\Thumb" & FilePath%>推荐答案 尝试: 27:Jpeg.Width = Jpeg.OriginalWidth *(CInt(Upload.Form(" scale)))/ 100) 和 28:Jpeg.Height = Jpeg.OriginalHeight *(CInt(Upload.Form(scale))/ 100) (我假设下一行是28等等。 。) 问候 RobTry :27: Jpeg.Width = Jpeg.OriginalWidth * (CInt(Upload.Form("scale")) / 100)and28: Jpeg.Height = Jpeg.OriginalHeight * (CInt(Upload.Form("scale")) / 100)(I assume the next line was 28 etc...)RegardsRob 这篇关于类型不匹配:'[string:&quot;&quot;]'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-11 07:58