PDA

View Full Version : i cant use cDate(), cInt() and etc in asp? y?


NinjaTurtle
10-04-2005, 01:41 PM
dear,

i am facing a problem using cDate(), cInt()..... and so on...
i cant use these VBscript command.
why? normally wat is the main reason caused this problem?
i afraid it is window problem or IIS problem. But it works in my home server or others server, just 1 or 2 server not working for these VB command??

i am very sure my code is correct.

and at the same time i cant use obj.AddNew or INSERT INTO... to insert/update/delete my record into MS Access. will it caused by the same problem?

nikkiH
10-04-2005, 03:06 PM
Please elaborate on "can't".
What happens? Server error? Something else?
Isn't a window problem unless you're talking client-side vbscript, which I'm assuming isn't the case since you posted this in the ASP forum.

NinjaTurtle
10-04-2005, 04:51 PM
sorry....

example my code:
<%
abc = "2.8"
response.write "abc="& cInt(abc)
%>

and i will get error message:

Microsoft VBScript runtime erreur '800a000d'
Type mismatch: '[string: "2.8"]'

for the second problem:

i get error message:
Microsoft JET Database Engine error ' 80040e09 ' Impossible update. The database or the object is in read-only. <-- i think this happen is because of the folder is not set to write permission. Will double check tomorrow.

NinjaTurtle
10-04-2005, 05:25 PM
i am thinking will this happen bcos of they are not using IIS? they r using Chili!Soft or other 3rd party s/w??? Posssible?
i can only find out this by tomorrow.

nikkiH
10-04-2005, 06:05 PM
Yes, very possible.
Also, it looks like old versions of asp didn't support string to int conversion using cint. Might want to check the version of asp/vb, too.

hinch
10-05-2005, 01:27 PM
as far as i'm aware all asp versions maintained the cint() etc functions but if theyre using chillisoft then it may be a problem seem to remember having issues with it in the past.

only bit of code i could find which i had available with a recast in there was this

rrdc = CDbl(rrdc)*5

works fine on iis on a win2k box