PRB: Recordset DTC moveAbsolute Does Not Work With QueryString (194024)
The information in this article applies to:
- Microsoft Visual InterDev 6.0
This article was previously published under Q194024 SYMPTOMS
The Recordset DTC moveAbsolute method will not work when a query string
variable is passed as the parameter (for example, rsDTC.moveAbsolute(4) vs
rsDTC.moveAbsolute(number) where "number" is a Query String variable
containing the number 4),
CAUSE
Query string varibles are by default a "string" datatype and the parameter
passes to the moveAbsolute method must be an integer.
RESOLUTION
Convert the variable to an integer type and then pass it to the
moveAbsolute method. In VBScript, you may use the cint function like this:
number = cint(variable)
Now you can pass "number" into the moveAbsolute method.
NOTE: This cannot be done in JScript or JavaScript because every variable
is an Object in JScript and JavaScript does not have an applicable type for
the moveAbsolute method.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/16/2005 |
---|
Keywords: | kbCtrl kbide kbprb KB194024 |
---|
|