|
 |
asp_discuss thread: VB constants not recognized in ASP
Message #1 by "cindy zhou" <czhou@w...> on Fri, 14 Mar 2003 15:44:17
|
|
Hi,
I am running into this problem:
The VB Enum type constants are not recgonized in my ASP page. e.g.
I wrote "rs.open str, conn, adOpenKeyset, adLockReadOnly", the
constants "adOpenKeyset" and "adLockReadOnly" are said undefined. If I
replace them with respective numbers, it works. What did I miss here? I
remember I saw some post regarding this question long time ago, but cannot
find it anymore.
Thanks,
Cindy
Message #2 by "Scott Reed" <scottr@m...> on Fri, 14 Mar 2003 10:59:18 -0600
|
|
I believe you must include the ADO constants include file for VBScript.
-Scott
-----Original Message-----
From: cindy zhou [mailto:czhou@w...]
Sent: Friday, March 14, 2003 3:44 PM
To: asp_discuss
Subject: [asp_discuss] VB constants not recognized in ASP
Hi,
I am running into this problem:
The VB Enum type constants are not recgonized in my ASP page. e.g.
I wrote "rs.open str, conn, adOpenKeyset, adLockReadOnly", the
constants "adOpenKeyset" and "adLockReadOnly" are said undefined. If I
replace them with respective numbers, it works. What did I miss here? I
remember I saw some post regarding this question long time ago, but cannot
find it anymore.
Thanks,
Cindy
Message #3 by "cindy zhou" <czhou@w...> on Fri, 14 Mar 2003 16:49:50
|
|
Thank you, Scott.
You're right. I have to include this file as follows:
<!--#include file="adovbs.inc"-->
Thanks,
Cindy
> I believe you must include the ADO constants include file for VBScript.
-Scott
-----Original Message-----
From: cindy zhou [mailto:czhou@w...]
Sent: Friday, March 14, 2003 3:44 PM
To: asp_discuss
Subject: [asp_discuss] VB constants not recognized in ASP
Hi,
I am running into this problem:
The VB Enum type constants are not recgonized in my ASP page. e.g.
I wrote "rs.open str, conn, adOpenKeyset, adLockReadOnly", the
constants "adOpenKeyset" and "adLockReadOnly" are said undefined. If I
replace them with respective numbers, it works. What did I miss here? I
remember I saw some post regarding this question long time ago, but cannot
find it anymore.
Thanks,
Cindy
|
|
 |